Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the unit of the ruler in Android studio layout editor?

enter image description here 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?

like image 468
Cody Avatar asked Jun 17 '17 06:06

Cody


People also ask

What is layout editor in Android Studio?

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.

What is layout Inspector in Android Studio?

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.

Is Android Studio an editor?

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.

How to inspect app in Android Studio?

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.


1 Answers

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.

like image 85
Huy Tran Avatar answered Nov 12 '22 05:11

Huy Tran