-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么设置默认选中 #59
Comments
继承后,加个类 public void setpos(int current_tab_position){ |
这样做还是不可以默认选中啊。。。 |
可以的,你继承后,把DropDownMenu.class类的代码全部复制到你的自定义的类,然后在你自定义的类加我给你的方法。我已经实现了,你可以看看DropDownMenu.class里的代码,理解一下就可以了 |
|
我是直接在DropDownMenu的源码里面加的你的方法setTabText方法还是不生效 |
我贴代码给你吧,public class MyDropDownMenu extends DropDownMenu {
} |
current_tab_position这个值,要点击控件才不是-1,所以我们使用的时候,传值给它 |
|
如果我的dropmenu里面有多个view怎么办呢?这样只是设置第一个view的默认选中 |
怎么设置默认选中
The text was updated successfully, but these errors were encountered: