0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

jetpack composeでの幅取得方法

Posted at

はじめに

今回はJetpackComposeでよく使う幅の取得方法を紹介していきます

本文

端末自体の画面幅を取得するには下記を使用します
LocalConfiguration.current.screenWidthDp
Componentの画面幅を取得したい場合はBoxWithConstraintsを使用することで取得することができます

さいごに

BoxWithConstraintsに関してはメインの機能は幅の取得ではないですが、いろいろ便利なのでまた何か記事を書こうと思います

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?