简体   繁体   中英

android studio layout view is empty

I create a new project for my android app. But the layout view is all white and empty. This is the image 1

but compare to what others have

2

It clearly sees that my layout window does not have a blue title on top, time and battery.

This is a design view only so first run your application and check whether toolbar is there or not.

if its still not coming Go to style.xml and change your theme.

    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

There are several themes, you can choose accordingly.

Check on Show Layout Decorations from your Activity Design tab. This will fix previews..

Click on the eye icon visible upper side, it'll expand and just check on that item.

在此处输入图片说明

the reason is you updated your android studio to 3.3 and I know there is the change that title bar will not visible in android design tab but if you run your app in the emulator or real device it will there

you don't have to change the theme or anything run your app it will be there in your device

I hope this will help you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM