I created application where I use theme Theme.holo.light. Now I want to change look of my edittexts to look like in Theme.Dark. How I can do that. I add something like this in styles.xml:
我创建了使用主题Theme.holo.light的应用程序。现在我想在Theme.Dark中改变我的edittexts外观。我怎么能这样做我在styles.xml中添加了类似的东西:
<style name="EditText.Style" parent="@android:style/Theme">
<item name="android:editTextStyle">@android:style/Widget.EditText</item>
</style>
and use in xml with that edittext but doesn't work. How I can change style my edit text?
并在xml中使用该edittext但不起作用。如何更改样式我的编辑文本?
1 个解决方案
#1
0
Check the following article: http://www.androidengineer.com/2010/06/using-themes-in-android-applications.html
请查看以下文章:http://www.androidengineer.com/2010/06/using-themes-in-android-applications.html
I found it very useful and practical for me. It will answer all your questions about theme style
我发现它对我来说非常有用和实用。它将回答您关于主题风格的所有问题
#1
0
Check the following article: http://www.androidengineer.com/2010/06/using-themes-in-android-applications.html
请查看以下文章:http://www.androidengineer.com/2010/06/using-themes-in-android-applications.html
I found it very useful and practical for me. It will answer all your questions about theme style
我发现它对我来说非常有用和实用。它将回答您关于主题风格的所有问题