新鲜的Android工作室不当content_main XML安装?

问题描述 投票:-1回答:2

我刚刚得到的Android工作室,我有一些问题,因为我的屏幕是从lynda.com教程不同。我content_main.xml文件中的设计选项卡只是一个蓝色的squaredesign然而,本教程有这个屏幕来代替。 enter image description here。这似乎解决本身当我关闭该项目并重新打开它。然而,代替的Hello World教程在屏幕的中间,我有安卓...协调布局,如下图所示。我做了什么错了,因为我从字面上刚刚下载的Android工作室... enter image description here

android android-studio android-studio-3.0
2个回答
0
投票

确保您的styles.xml

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>


0
投票

确保样式(父=“Base.Theme.AppCompat.Light.DarkActionBar”>)

© www.soinside.com 2019 - 2024. All rights reserved.