开发者

Using TabWidget.setDividerDrawable()?

开发者 https://www.devze.com 2023-01-16 04:57 出处:网络
Has anyone had any success with TabWidget.setDivider()? I\'m not sure it does what I\'m assuming: gives you a chance to supply a drawable to be drawn between each tab instance?

Has anyone had any success with TabWidget.setDivider()? I'm not sure it does what I'm assuming: gives you a chance to supply a drawable to be drawn between each tab instance?

mTabHost.getTabWidget().setDividerDrawable(R.drawable.dividerDrawable);

this does not ap开发者_运维知识库pear to do anything. Looking at the tab drawable resources in the android project shows that the dividers are actually drawn into the tab images themselves - is this supposed to work or is it not supported?


Call that before you set the content of the tabs.Or It would crash. similar answer is here

0

精彩评论

暂无评论...
验证码 换一张
取 消