[英]Custom Buttons with vewpager in TableLayout
I have an App with TableLayout but i can't make the same as in design which i will put link below我有一个带有 TableLayout 的应用程序,但我无法与设计中的应用程序相同,我将在下面放置链接
My XML:
我的 XML:
<RelativeLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="16dp"
android:fitsSystemWindows="true"
android:background="@drawable/back"
tools:context=".MainActivity">
<com.google.android.material.tabs.TabLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabMode="fixed"
android:clipToPadding="true"
android:clipChildren="true"
app:tabIndicatorHeight="0dp"
app:tabSelectedTextColor="@android:color/white"
app:tabTextColor="@android:color/white"
app:tabBackground="@android:color/transparent"
app:tabGravity="fill"/>
</RelativeLayout>
Any idea please?请问有什么想法吗?
我认为您唯一的选择是使用 3 个按钮创建自定义视图并自己完成所有导航。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.