LoginSignup
1
2

More than 3 years have passed since last update.

すべてのAPIレベルで使用できる ?attr/ 属性を使うべし

Last updated at Posted at 2020-03-11
記述 説明
?android:attr/foo android:あり。
Android プラットフォームで定義されている静的ライブラリ。
例) Layout android:id
?attr/bar android:なし。
AppCompat や MaterialDesignComponentで定義。
コンパイル後アプリに同梱される。
例) Layout app:baz

colorPrimaryなど両方に存在する場合は、多くのAPIレベルで利用できる?attr/barを使うことをおすすめします。そのライブラリを正しく複製してバックポートしています。

👉Theme.MaterialComponents の カラーテーマ

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2