0

When previewing a layout, such as activity_main.xml on the design view, how do I remove the frame of the phone on my previews? I know this question may have been answered before, but I can't find the solution anywhere.

enter image description here

I want to remove the black border frame of the phone on my layout preview.

Siddharth Lele
  • 27,623
  • 15
  • 98
  • 151
Tommy Saechao
  • 1,099
  • 4
  • 17
  • 28
  • Uh, that's not a "black border" per se in such a way that there's going to be a border when you deploy it to a device. That's the side of the emulator device. – Razgriz Aug 04 '16 at 05:30
  • Yes, I know it wont be there when I deploy it on a device. It's just annoying because it takes up space on my IDE. – Tommy Saechao Aug 04 '16 at 05:31

1 Answers1

3

Click that setting button then uncheck the include Device Frame.

enter image description here enter image description here

Update: For Android studio 2.2 See this thread.

Community
  • 1
  • 1
Sohail Zahid
  • 8,099
  • 2
  • 25
  • 41
  • @Sohail, I'm using 2.2.2 on a mac but I see no settings button that show "include device frames" as an option, where can I find it? thx – rockhammer Nov 07 '16 at 07:22
  • @Sohail 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:02