安卓:"新闻和天气"应用程序标签 [英] Android: "News and Weather" app tabs
本文介绍了安卓:"新闻和天气"应用程序标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
没有人知道如何在新闻与天气应用程序使用构建一种标签?
does anyone know how to build that kind of tabs that the "News and Weather" app uses?
这意味着,可以滚动到左侧&安培一个标签区域;对。改变翼片,也可以通过滚动列表视图的左/右
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.
推荐答案
这部分在那里实际上是一个 HorizontalScrollView
,里面的按钮。使用它像一个的LinearLayout和投掷的按钮。你必须手动操作按钮/标签的选择/未选中状态,但。
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.
这篇关于安卓:"新闻和天气"应用程序标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文