因此,我正在尝试重新创建一个与此类似的 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/