Android 的预定义样式和主题
我已经完成了应用程序逻辑的编码,其中包含一个 GridView、一些 TextView 和一些对话框。
我现在希望对这些视图进行样式设置,因为默认主题有点难看。
我查看了提供的 Android 主题,并尝试了其中的一些主题,但它们并没有提供太多功能。 因此,我想知道是否有任何可用资源可以让我快速应用预定义的ene,然后我可以相应地调整它? 在几个时尚主题之间切换以获取想法并调整它们的能力将非常有益,因为我不是最注重图形的。
谢谢
I have finished coding the logic of my application, which contains a GridView, a few TextViews and a few dialogs.
I now wish to style these views, as the default theme is somewhat ugly.
I've had a look at the provided Android themes, and tried out a few of them but they didn't really offer much.
Therefore, I'm wondering if there are any resources available that would allow me to quickly apply a pre-defined thene and I could then tweak it accordingly?
The ability to switch between a few stylish themes to get ideas and tweak them would be very beneficial as I am not the most graphical-minded.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面是我如何以不同的方式设计我的对话框。我首先定义一个形状,它提供渐变填充背景和圆角边缘:
filled_roundededges_box.xml
然后使用此形状创建一个样式:
styles.xml:
最后我应用这个样式到我的按钮:
或者,您可以使用以下方式将样式作为主题应用到 who 应用程序:
Here what I do to style my dialogs differently. I first define a shape which gives be a gradient filled background and rounded edges:
filled_roundededges_box.xml
I then create a style using this shape:
styles.xml:
Finally I apply this style to my button:
Alternatively you can apply the style as a theme to the who app using: