问题在于1、跟android:theme="@style/AppTheme">有关
2、定义在系统里,但是值:(1)app–>平常appTheme,是在gradle里定义的值
(2)aosp系统里的值:在themes.xm以及theme_holo.xml里
TODO:两者什么区别
<!-- Honeycomb holographic theme (dark version).
<p>This is the default system theme for apps that target API level 11 - 20. Starting
with API level 14, the default system theme is supplied by {@link #Theme_DeviceDefault},
4、跟主题强相关。。appTheme还是Theme—>参考背景
下面便是开发者可以自定义背景
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Even though these two point to the same resource, have two states so the drawable will invalidate itself when coming out of pressed state. -->
<item android:state_focused="true" android:state_enabled="false" android:state_pressed="true" android:drawable="@drawable/ic_launcher_background" />
<item android:state_focused="true" android:state_enabled="false" android:drawable="@drawable/ic_launcher_background" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/ic_launcher_background" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/ic_launcher_background" />
<item android:state_focused="true" android:drawable="@drawable/ic_launcher_background" />
<!-- <item android:state_focused="true" android:drawable="@drawable/abc_list_focused_holo" />-->
<item android:drawable="@android:color/transparent" />
</selector>