【发布时间】:2014-11-26 03:28:09
【问题描述】:
所以,我正在尝试重新创建一个与此类似的视图。
到目前为止,我的想法是创建一个带有按钮的可滑动视图。但是,我似乎无法创建他们为 Google Play 制作的可滑动视图。它基本上就像一个标签。我似乎无法弄清楚如何在没有 ActionBar Tab 的情况下使用 Tab。
<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>
为了防止关闭(由于广泛性),我想我会指定我想知道上面显示的选项卡样式所需的视图元素
【问题讨论】:
-
这是问题所在,我们发现了一些很棒的东西,但不知道如何制作它:/