Custom settings for Android program development tabhost, tabwidget style

First look at the effect:

Menu bar at the bottom of Jingdong Mall

Menu bar at the bottom of sina Weibo

Effect drawing of this study:

First, the code of the main layout file (the startup page main.xml, located in the RES / layout directory)

Second, create the layout tabmini.xml that displays this tabwidget (located in the RES / layout directory)

Third, create a selector in drawable and name it tabmini.xml to change the textview when clicking a tab of tabhost

Fourth, the Java code implements tabhost in the activity

The above content is the custom settings tabhost and tabwidget style of Android program development shared by Xiaobian. I hope it will be helpful to you!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>