does anyone know how to build that kind of tabs that the "News and Weather" app uses?
see here http://img51.imageshack.us/img51/8788/tabsd.png
This means a tab area that can be scrolled to the left & right. Changing the tabs is also possible by scrolling the listview to the left / right.
For that, long-press on your Home Screen, and tap on 'Widgets'. In the Widgets popup screen that appears, scroll down and tap on 'Google'. You should now see the two new weather widgets available.
The Weather widget is already on your Home screen by default. It's easy to customize the widgets you have, but you can't remove all widgets.
That component up there is actually a HorizontalScrollView
, with buttons inside. Use it like a LinearLayout and throw in the buttons. You'll have to manually handle the selected/unselected states of the buttons/tabs though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With