How to set a handle button in slider content in android?(如何在 android 的滑块内容中设置手柄按钮?)
问题描述
我正在使用 android.我在我的应用程序中使用了 滑块库.
I am working with android.I had used slider library in my application.
现在我想添加一个按钮来处理幻灯片活动,这样我就可以像图片中一样滑动内容和按钮来打开和关闭.关闭幻灯片菜单后,按钮将出现在活动前面.
Now I want to add a button to handle the slide activity,so I can swipe contents along with button to open and close as in the picture.After close the slide menu, button will appear infront of the activity.
我不知道这是否可能.
如果你熟悉这个库,请帮助我,在此先感谢:)
Please help me if you are familiar with this library, thanks in advance :)
我使用以下代码访问滑块内容
I used the following code to access slider content
SlidingMenu menu = new SlidingMenu(this);
menu.setMode(SlidingMenu.LEFT);
menu.setApp_id("ads");
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setShadowWidthRes(R.dimen.shadow_width);
menu.setShadowDrawable(R.drawable.shadow);
menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
menu.setFadeDegree(0.35f);
menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
menu.setSecondaryMenu(R.layout.slide);
推荐答案
通过在错误信息中设置spannable string或者扩展EditText并覆盖你自己的错误绘制机制.
By setting spannable string in error message or extend EditText and overrite your own error draw mechanism.
这篇关于如何在 android 的滑块内容中设置手柄按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 android 的滑块内容中设置手柄按钮?


- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01