簡體   English   中英

TableLayout 中帶有 vewpager 的自定義按鈕

[英]Custom Buttons with vewpager in TableLayout

我有一個帶有 TableLayout 的應用程序,但我無法與設計中的應用程序相同,我將在下面放置鏈接

截屏

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

請問有什么想法嗎?

我認為您唯一的選擇是使用 3 個按鈕創建自定義視圖並自己完成所有導航。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM