第一讲

第一讲

图片资源

先左上角调成project模式,然后在app的src的main的res里面点开有drawable还有mipmap

字符串资源

布局资源

修改背景

如果想修改背景样式必须在values的thems.xml里面

将这行的parent=改成这样

<style name="Theme.MyApplication" parent="Theme.AppCompat.Light" />

 

这么改(只改红色那行改成这样)

<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.MyApplication" parent="Theme.AppCompat.Light">
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>

<style name="Theme.MyApplication" parent="Base.Theme.MyApplication" />
</resources>
posted @ 2024-03-17 13:43  Annaprincess  阅读(22)  评论(0)    收藏  举报