how to design tab which onselect comes in center of a tabhost

二次信任 提交于 2019-12-10 12:11:39

问题


I just encountered a problem in layout design with tabhost

.

i need exactly the same design so that on selecting a tab it will come in cented of the screen. with design like in these pictures.


回答1:


Currently ViewPagerIndicator is the best resource for getting this done without too much code. As for the same design you're going to have to do a little work yourself to get that done. If you look through the samples on the projects github you'll see some examples of how the ViewPagerIndicator can be themed.

http://viewpagerindicator.com/



来源:https://stackoverflow.com/questions/9205976/how-to-design-tab-which-onselect-comes-in-center-of-a-tabhost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!