如何使 tablayout 在图像滑块上透明

how to make tablayout transparent on image slider

如何使图像滑块上的选项卡布局透明...这是我声明选项卡布局的布局...我搜索了很多但没有找到任何解决方案...

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    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.support.design.widget.TabLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="150dp"
        android:id="@+id/tablayout"
        android:textAllCaps="false"
        android:background="#db000000"
        app:tabMode="fixed"
        app:elevation="0dp"
        app:tabGravity="fill"
        app:tabTextColor="#FFFFFF"
        app:tabSelectedTextColor="#EF9C1A"
        android:tabStripEnabled="true"
        >
    </android.support.design.widget.TabLayout>
</RelativeLayout>

like in this image..

my app is like this

只需将 android:background 设置为 #70000000。这将使它半透明。只需将 70 值更改为更适合您的值即可。 99 变暗。 10是透明的(打火机)

编辑: 要使其完全透明,只需使用 android:background="@android:color/transparent"