Android Play 报亭布局设计

标签 android xml

Play Newstand

因此,我正在尝试重新创建一个与此类似的 View 。

到目前为止,我的想法是创建一个带有按钮的可滑动 View 。但是我似乎无法创建他们为 Google Play 制作的可滑动 View 。它基本上就像一个标签。我似乎无法弄清楚如何在没有 ActionBar 选项卡的情况下执行选项卡。

<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>

为了防止闭包(由于宽泛)我想我会指定我想知道上面显示的选项卡样式所需的 View 元素

最佳答案

AppCompat v21 — 前 Lollipop 设备的 Material 设计

关于Android Play 报亭布局设计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27140842/

相关文章:

java - Proguard 使我的 RemoteController compat 实现在 API<19 设备上崩溃

android - Android Service中如何使用MutableSharedFlow?

java - Android 上的 JNI,如何将 int 从 c 传递到 java

java - 后退按钮退出应用程序而不是返回到 MainActivity

xml - 如何使用linux csplit 分割海量XML文件?

php - SOAP + WSDL + PHP

android - 如何在使用 cordova 构建的现有混合应用程序上实现拉动刷新

java - 无法从 java/Android Studio 中的网站获取数据

xml - 编码 XML Go XMLName + xmlns

c# - 我有两个组合框和xml文件,我想从xml中填充组合框1中的服务器名称,并根据服务器名称填充第二个组合框