2016-01-04 29 views
7

TabLayoutのタブでMaterial Ripple Effectを削除しようとしています。TablayoutのMaterial Rippleを無効にする

これは可能かどうか疑問に思っていますか?

どのようなアイデアをお願いしますか?

私はnullにstateListAnimatorを設定しようとしたが、それはまだ

<android.support.design.widget.TabLayout 
     android:id="@+id/tabLayout" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:stateListAnimator="@null"/> 

答えて

10

は、Androidの透明色を使用し、例えば、背景を変更するようにしてください動作しません。

<android.support.design.widget.TabLayout 
    android:layout_width="match_parent" 
    android:layout_below="@id/toolbar" 
    android:layout_height="70dip" 
    app:tabBackground = "@android:color/transparent" 
    app:tabMode="fixed" /> 
関連する問題