What is the unit of the ruler in Android studio layout editor?
I chose Nexus 5 and the screen size of Nexus 5 is 360dp x 640dp
or 1080px x 1920px
It's neither dp nor px. What is it? Can I change the unit?
The Layout Editor enables you to quickly build layouts by dragging UI elements into a visual design editor instead of writing layout XML by hand.
The Layout Inspector in Android Studio allows you to debug the layout of your app by showing a view hierarchy and allowing you to inspect the properties of each view.
Develop Android apps in a powerful, intelligent code editorAndroid Studio is the official integrated development environment (IDE) for Android application development. Android Studio offers these features: A flexible build system that is based on Gradle.
From the Android Studio navigation bar, select View > Tool Windows > App Inspection. After the app inspection window automatically connects to an app process, select Network Inspector from the tabs.
I think it's dp fixed in xhdpi screen. You can see when select Nexus 5 (1080px width), its screen take approx 550 unit in horizontal ruler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With