当前位置: 代码迷 >> 综合 >> Themes//布景主题,桌面主题(完)
  详细解决方案

Themes//布景主题,桌面主题(完)

热度:43   发布时间:2023-12-16 06:17:45.0

Themes//布景主题,桌面主题

Themes are Android's mechanism for applying a consistent style to an app or activity. The style specifies the visual properties of the elements that make up your user interface, such as color, height, padding and font size. To promote greater cohesion between all apps on the platform, Android provides two system themes that you can choose from when building apps:
//主题是安卓为一个应用或activity适用一个一贯的风格的机制。这个风格指的是组成你界面的元素的视觉属性,例如颜色,高度,填充,和字体大小。为了提高在平台上所有应用的内聚性,安卓要求当你建立应用时你可以选择两个系统主题中的一个:
Holo Light://完全,整体;光
Holo Dark://黑
Applying these themes will go a long way in helping you to build apps that fit right into the general visual language of Android.
//应用这些主题将帮助您构建应用程序正确融入普通安卓系统的视觉语言.
Pick the system theme that best matches the needs and design aesthetics for your app. If your desire is to have a more distinct look for your app, using one of the system themes as a starting point for your customizations is a good idea. The system themes provide a solid foundation on top of which you can selectively implement your own visual stylings.
//为你的应用选择那些满足设计美学和需要的主题。如果你希望你的应用看起来很独特,那么使用系统的主题最为你自定义的主题的一个开启,是个很好的注意。系统的主题提供了一个坚实的基础,在这个基础上你可以有选择地实现你自己的视觉风格。

Developer Guide

For information about how to apply themes such as Holo Light and Dark, and how to build your own themes, see theStyles and Themes API guide.

//更多的关于如何应用Holo Light,Holo Dark主题,以及如何建立自己的主题,见API向导里面的Styles and Themes.