2

I am wondering how can i preview my XML, without the telephone frame and see all the activity/fragment. Why i want to do that? Because i'm using lots of ScrollViews and sometimes is impossible to see what's after the bottom of the telephone.

Is there any way to accomplish that?

screen frame doesn't fit example

Marco
  • 625
  • 3
  • 10
  • 30
  • for android studio 2.2 and above follow this link http://stackoverflow.com/questions/40460227/android-studio-designer-preview-how-to-include-device-frame/43132508#43132508 – Saurabh Bhandari Mar 31 '17 at 05:05

2 Answers2

3

First, You can set scrollview on top layout of xml and click on design tab. Now see the first button of the above toolbar, press it and u can see full view of all layouts in xml.

For Example see below image:

enter image description here

Mayur Sakhiya
  • 326
  • 2
  • 14
  • At first, i coudn't find any option for that. But then, i realized the scrollView must be the main layout of the file, and i had it inside a Relative Layout. thank you – Marco Dec 10 '15 at 14:45
  • @MarcoBarbosa for android studio 2.2 and above follow this link http://stackoverflow.com/questions/40460227/android-studio-designer-preview-how-to-include-device-frame/43132508#43132508 – Saurabh Bhandari Mar 31 '17 at 05:06
0

In the toolbar above the preview pane, click on the settings icon (cogwheel) and deselect "Include Device Frame (if available)"

mlidal
  • 1,111
  • 14
  • 27