LoginSignup
0
0

More than 1 year has passed since last update.

【Jetpack Compose】Icon() や Image() で ImageVector をより便利に使う

Last updated at Posted at 2022-06-13

コード記述のみでベクターのマテリアルアイコン使えます。

drawable の作成が不要なので便利、変更もしやすいです。

Icon(
  imageVector = Icons.Filled.Favorite,
  contentDescription = null
)
Image(
  imageVector = Icons.Filled.Favorite,
  contentDescription = null
)

悪い点としては、

絵柄が49個しかない

絵柄を見ながら選択できない

というところでしょうか。

対応策を考えてみましょう。

👉 【Jetpack Compose】Icon() や Image() で ImageVector をより便利に使う

0
0
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
0
0