简体   繁体   中英

Whats the difference between tab and tab widget

I am wondering which one refers to the list of tabs titles at the top of the screen and which refers to the content? I always thought that the widget is the list of titles and tab is the actual content of one tab. The reason I am confused is because apperently, getCurrentTabview.setBackgroundColor sets the color of one of of the items in the list (the top portion). But getWidget().geChildAt(i).setBackgroundColor set the color of the whole content.

Sooooo. kinda got confused. any help?

i believe you are talking about TabHost and TabWidget :

well, Tabhost is the parent container which defines tab+content views. As it's name explains, it hosts the entire view. However, TabWidget is the view which offers tab-buttons for the tab. Another, third thing, is called FrameLayout which offers the place for content(s) to reside

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM