0

Recently updated android studio to version 3.3.

Problem

Created a new project and found out that layout preview window is not showing action bar but it shows in the emulator when app runs in the emulator. Device frame also doesn't shows up in the preview and design window.

Styles.xml file

enter image description here

Gradle Module dependencies

enter image description here

Design window

enter image description here

Question

I want to see both action bar and device frame, how can i fix it?

2 Answers2

4

Please check this :

Change a setting for Show Layout Decorations (By Default it is unchecked, just check it and ActionBar will be there)

enter image description here

Visible ActionBar

enter image description here

Deep Patel
  • 2,584
  • 2
  • 15
  • 28
  • 2
    In Android studio version 4.0.1 it is in the same place, but called "Show system UI" – Lohi Aug 17 '20 at 19:52
0

Its very simple....try this may be its work....

Go to gradle script>build gradle(module app) and Replace this dependency: implementation 'com.android.support:appcompat-v7:28.0.0-alpha3 To: implementation 'com.android.support:appcompat-v7:28.0.0-alpha1