首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Android Play报摊布局设计

Android Play报摊布局设计
EN

Stack Overflow用户
提问于 2014-11-26 11:28:10
回答 4查看 1.5K关注 0票数 3

因此,我正在尝试重新创建一个类似于此的视图。

到目前为止,我的想法是创建一个带有按钮的可滑动视图。然而,我似乎不能创建他们为Google Play制作的可滑动视图。它基本上就像一个标签。我似乎想不出没有ActionBar标签的标签该怎么做。

代码语言:javascript
复制
<LinearLayout android:orientation="horizontal"
     android:layout_width="match_parent"
     android:layout_height="0dip"
     android:layout_weight="0.5">
        <Button
            android:id="@+id/radio_button2"
            android:layout_marginTop="2.0dip"
            android:layout_width="0dp"
            android:layout_height="40dp"
            android:background="#fff"
            android:textColor="#3e82ff"
            android:layout_weight="1"
            android:text="Description" />

        <Button
            android:id="@+id/radio_button3"
            android:layout_marginTop="2.0dip"
            android:layout_height="40dp"
            android:layout_width="0dp"
            android:background="#fff"
            android:textColor="#3e82ff"
           android:layout_weight="1"
            android:text="Comments" />

</LinearLayout>

为了防止闭包(由于宽度的原因),我想我应该指定我想知道上面显示的选项卡样式所需的视图元素

EN

Stack Overflow用户

发布于 2015-02-04 04:58:40

在单独的块中考虑它是最容易的。

1)首先是标签,有了材料,你可以在这里看看这篇文章:android 5.0 material design tabs

2)第二个是具有视差的垂直滚动。我将使用与此类似的东西:https://github.com/kanytu/android-parallax-recyclerview

3)最后的部分是根据滚动方向使工具栏消失和重新出现。我将把它留给你的google库或允许它的科学家。:)

-编辑--

我投降了。下面是我见过的一个使用可观察滚动视图的不错的应用程序:https://github.com/ksoichiro/Android-ObservableScrollView

票数 2
EN
查看全部 4 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27140842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档