After upgrading to Android Studio v3.0 the design view for all my layouts look like below, ie ActionBarOverlayLayout covers the whole design surface, and the app does not even use the actionbar.
In the manifest the application element is:
<application
android:name=".MyAppName"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
And AppTheme is defined in styles.xml like
<style name="AppTheme" parent="Theme.AppCompat">
<item name="android:colorBackground">?attr/colorPrimaryDark</item>
<item name="android:textColor">@color/colorWhite</item>
<item name="android:itemBackground">@color/colorControlActivated</item>
</style>
Change parent style of Apptheme
From:
<style name="AppTheme" parent="Theme.AppCompat">
To:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
I hope it will help.
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.