• QQ
  • nahooten@sina.com
  • 常州市九洲新世界花苑15-2

Android

Android Studio Design不表现layout控件

原创内容,转载请注明原文网址:http://homeqin.cn/a/wenzhangboke/jishutiandi/Android/2019/0517/499.html

 

Android Studio更新到3.1.3后,发掘拖到Design中的控件在预览界面中不表现;

 

办理办法:

 

Styles.xml中的parent="..."中的Theme前添加Base

 

<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>

 

</resources>

 

 

上篇:上一篇:Android之GJSON解析
下篇:下一篇:【Android】播放音频的几种