使用MaterialButton,圖示顯示不出來,不知道咋回事,但位置是占著的,文字偏移了,并且設定iconTint也確實顯示顏色了,但圖示就死活不出來。
<com.google.android.material.button.MaterialButton
android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"
app:iconGravity="textStart"
android:textColor="#333"
app:iconPadding="10dp"
app:strokeColor="#ccc"
app:strokeWidth="1dp"
app:cornerRadius="0dp"
app:iconTint="@color/text_color"
android:textSize="16dp"
app:iconSize="22dp"
app:icon="@drawable/ic_launcher"/>
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/284587.html
標籤:Android
下一篇:android studio錯誤
