LoginSignup
8
5

More than 1 year has passed since last update.

Jetpack Composeを触るときにInteractive Previewが便利

Posted at

こちらに書いてある内容です。

Jetpack Composeを利用するときに、Interactive Previewを利用すれば、アプリをビルドすることなくタップやアニメーションなどの動作確認ができます。
ドキュメントに掲載されている以下の例では、Android Studio内でボタンをタップしたときの挙動を確認することができます。

Interactive Preview

設定方法

  1. Jetpack Composeに対応しているAndroid Studio(Arctic Fox以上)をダウンロードします
  2. 設定を開き、 ExperimentalJetpack ComposeEnable interactive and animation preview tools を有効にします
    スクリーンショット 2021-08-04 11.02.53.png

  3. Composeのプレビュー画面にあるInteractive Previewボタンをタップします。

8
5
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
8
5