4
を必要が低いAPIレベルで互換性のあるコードを以下のようにする方法がありますAPIレベル21
Using theme references in XML drawables requires API level 21 (current min is 15)
を必要が低いAPIレベルで互換性のあるコードを以下のようにする方法がありますAPIレベル21
Using theme references in XML drawables requires API level 21 (current min is 15)
使用:android:drawable="?android:attr/selectableItemBackground"
は、このメッセージを生成しますandroid:drawable="?attr/selectableItemBackground"
これは、デザインタイムメッセージを削除しますが、実行時エラーを生成します。 '- タグには、drawable'属性を定義する 'drawable'属性または子タグが必要ですn古いAPI(API 17と19でテスト済み) –