作者hugh509 ((0_ 0))
看板AndroidDev
标题[问题] 关於styles的设定
时间Wed Mar 11 11:33:58 2015
在网路上看到styles可以,分别依照版本做出不同效果
所以就想试试看,而且好像as新增专案後就会有v21\styles
但我的as却没有,要自己新增一个v21\styles
新增之後也没问题,但是我照教学中用的方法模拟器却出现中止运作
v21\styles
<resources>
<style name="
AppTheme" parent="
android:Theme.Material.Light">
</style
.........
</resources>
可是只要v21改成和styles一样,模拟器中的app就可以运作
<style name="
AppTheme" parent="
AppTheme.Base">
後来找官网也是说要去抓android:Theme.Material
https://developer.android.com/training/material/theme.html
还是说我开发的是v17之後的版本不用特别新增?
只需要styles就好不用新增v21的styles
又或者需要什麽其他设定?
不好意思麻烦大家,门外汉又Google不到才问这麽浅的问题
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.252.39.207
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1426044846.A.81C.html
※ 编辑: hugh509 (111.252.39.207), 03/11/2015 11:34:32
1F:→ KeySabre: Android弄一堆styles.xml真的很恼人 03/11 12:57
2F:→ hugh509: 解决了XD 现在想起来这问题真蠢~ 03/11 18:56
3F:→ ssccg: 直接用appcompat的theme.. 03/11 20:52