はTextView
で使用されていますか? DrawableTint
は、APIレベル23以上でのみ動作します。v3.0以前のデバイスでのAndroid TextView DrawableTint
現在、私はVertical Linear Layout
を使用しています。
<LinearLayout style="@style/ChoiceIllustratorIconTextContainerStyle">
<ImageView
style="@style/ChoiceIllustratorImageStyle"
android:contentDescription="@string/cd_university"
android:src="@drawable/ic_account_balance_white_24dp" />
<TextView
style="@style/ChoiceIllustratorTextStyle"
android:text="@string/ci_text_university" />
</LinearLayout>
Androidのスタジオは私がこれを達成するためにTextView
とCompound Drawble
を使用することが示唆されます。そして私はそれを達成することができますが、Tint
への道を見つけることができません。
<TextView
style="@style/ChoiceIllustratorTextStyle"
android:drawablePadding="4dp"
android:drawableTop="@drawable/ic_account_balance_white_24dp"
android:text="@string/ci_text_university" />
この助けることができる:http://stackoverflow.com/questions/29155463/drawable-tinting-for-api-21 – Gudin
は、私はそれをチェックし、私の場合は役に立たない。ありがとう –