问题描述
我正在使用 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 的滑块内容中设置手柄按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!