Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.2 Preview all screen sizes missing

Android studio before 2.2 version at the xml design screen there was a view like "Preview all screen sizes" (check the image) but I cannot find that in Android Studio 2.2 Beta 2. "Preview all screen sizes"

My Android Studio version is:

Android Studio 2.2 Beta 2
Build #AI-145.3200535, built on August 18, 2016
JRE: 1.8.0_76-release-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Could you help me where is it, how can I open it?

like image 732
bendaf Avatar asked Aug 26 '16 11:08

bendaf


People also ask

How do I make my Android apps fit all screen sizes?

Simple, use relative layout with the set margin code. Set the margins between each text view, button, etc and it will look the same on every phone. android:layout_marginTop="10dp" // change Top to Bottom, Left or Right for what you need.


2 Answers

The option to preview all screen sizes is not available in Android Studio 2.2 Beta 2. However, you can resize the preview screen to see how your layout would look on different screen sizes, as shown in the attached gif.

Android Studio 2.2 Beta 3 Preview Screen resize example

like image 129
iRuth Avatar answered Sep 25 '22 15:09

iRuth


While preview all screen sizes seems to be gone, it is possible in 2.3 to view more than one screen size at the same time.

Right-click on the activity_main.xml (or whichever xml file) tab, and from the pop-up menu select split-vertically or split-horizontally.

This will create a second xml tab that can use a different screen for design/text. This can be repeated for more tabs, and the tabs can be "torn off" to float separately.

like image 36
itDontMeanAThing Avatar answered Sep 24 '22 15:09

itDontMeanAThing