`
jguangyou
  • 浏览: 369565 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

android 中系统自带的主题与样式

 
阅读更多

android中自带的主题(theme)的集锦:

  1. •android:theme="@android:style/Theme.Dialog" 将一个Activity显示为对话框模式
  2. •android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
  3. •android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
  4. •android:theme="@android:style/Theme.Light" 背景为白色
  5. •android:theme="@android:style/Theme.Light.NoTitleBar" 白色背景并无标题栏
  6. •android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
  7. •android:theme="@android:style/Theme.Black" 背景黑色
  8. •android:theme="@android:style/Theme.Black.NoTitleBar" 黑色背景并无标题栏
  9. •android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
  10. •android:theme="@android:style/Theme.Wallpaper" 用系统桌面为应用程序背景
  11. •android:theme="@android:style/Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
  12. •android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
  13. •android:theme="@android:style/Translucent" 半透明效果
  14. •android:theme="@android:style/Theme.Translucent.NoTitleBar" 半透明并无标题栏
  15. •android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" 半透明效果,无标题栏,全屏
  16. •android:theme="@android:style/Theme.Panel"
  17. •android:theme="@android:style/Theme.Light.Panel"

android中系统自带的样式(style)的集锦:

Android平台定义了三种字体大小。

  1. "?android:attr/textAppearanceLarge"
  2. "?android:attr/textAppearanceMedium"
  3. "?android:attr/textAppearanceSmall"

使用方法:

  1. android:textAppearance="?android:attr/textAppearanceLarge"
  2. android:textAppearance="?android:attr/textAppearanceMedium"
  3. android:textAppearance="?android:attr/textAppearanceSmall"

或者

  1. style="?android:attr/textAppearanceLarge"
  2. style="?android:attr/textAppearanceMedium"
  3. style="?android:attr/textAppearanceSmall"

Android字体颜色

  1. android:textColor="?android:attr/textColorPrimary"
  2. android:textColor="?android:attr/textColorSecondary"
  3. android:textColor="?android:attr/textColorTertiary"
  4. android:textColor="?android:attr/textColorPrimaryInverse"
  5. android:textColor="?android:attr/textColorSecondaryInverse"

AndroidProgressBar

  1. style="?android:attr/progressBarStyleHorizontal"
  2. style="?android:attr/progressBarStyleLarge"
  3. style="?android:attr/progressBarStyleSmall"
  4. style="?android:attr/progressBarStyleSmallTitle"

分隔符 横向:

  1. <View
  2. android:layout_width="fill_parent"
  3. android:layout_height="1dip"
  4. android:background="?android:attr/listDivider" />

分隔符 纵向:

  1. <View android:layout_width="1dip"
  2. android:layout_height="fill_parent"
  3. android:background="?android:attr/listDivider" />
复制代码

CheckBox

  1. style="?android:attr/starStyle"

其它

  1. //类似标题栏效果的TextView
  2. style="?android:attr/listSeparatorTextViewStyle"
  3. //其它有用的样式
  4. android:layout_height="?android:attr/listPreferredItemHeight"
  5. android:paddingRight="?android:attr/scrollbarSize"
  6. style="?android:attr/windowTitleBackgroundStyle"
  7. style="?android:attr/windowTitleStyle"
  8. android:layout_height="?android:attr/windowTitleSize"
  9. android:background="?android:attr/windowBackground"
分享到:
评论

相关推荐

    android系统的自带主题

    android的系统自带style,用于设置android的activity主题样式

    Android字体,分析了Android系统自带的4种样式效果.zip

    Android字体,分析了Android系统自带的4种样式效果,以及对思源黑体的安装和实现进行详解。最后自定义字体TextView(ZFontTextView)。使用工具Android Studio 软件开发设计:PHP、QT、应用软件开发、系统软件开发、...

    android ProgressDialog 自定义样式

    这个demo是关于android中继承Dialog重新自定义一个ProgressDialog。 需求:带加载图片和文字说明,可定时停止也可被动中断。 如有BUG或者不完善,欢迎小伙伴们提出~

    android自带的icons图标汇集

    包含android系统自带的,免费公开的icons集合,有每个图标的样式和英文名称,包括桌面的,menu菜单里的所有图标,使用时不用下载,直接通过代码引用即可。

    Android修改系统自带Spinner字体大小和颜色demo

    由于项目需求,最近在研究Spinner,发现系统自带的spinner的字体大小和颜色没法修改,于是查找资料实现修改系统自带Spinner字体大小和颜色的功能;并且该demo还实现了自定义Spinner样式以及实现hint的效果,本人第一...

    Android系统自带样式 (android:theme)

    Android系统中自带样式分享,需要的朋友可以参考下

    Android 实例讲解 Spinner样式修改

    1.直接加载android自带的ArrayAdapter,SimpleAdapter; 2.自定义继承BaseAdapter的适配器。 对于适配器加载自定义的xml布局文件,修改该Spinner样式较简单,就是在定义的xml布局文件中修改显示的样式就可以。但对于...

    Android Studio实现个人记账系统源码.zip

    Android Studio实现个人记账系统源码。基于安卓基础知识点开发的个人...7-使用Android自带数据库,熟练创建表,并进行增删改查 8-定义drawable文件,设定布局以及控件样式 9-使用MPAndroidChart第三方框架绘制柱状图

    android 日历自定义样式

    android 日历自定义样式 改变android自带的日历控件,使日历控件更美观

    Android-PowerfulEditText自带一键清除按钮密码显示与隐藏按钮也可自定义资源

    自带一键清除按钮,密码显示与隐藏按钮,也可自定义资源。还有多种输入框样式可供选择

    android软键盘上移动焦点

    android自带的输入法,在软键盘上实现焦点移动,支持上下左右按键,并支持回车输入,文档以LatinIME为例

    Android开发EditText属性.txt

    android:attr/textAppearanceLargeInverse"//文字外观,这里引用的是系统自带的一个外观,?表示系统是否有这种外观,否则使用默认的外观。不知道这样理解对不对?  属性名称描述  android:autoLink设置是否...

    Android中用CalendarView实现日历的显示样式

    用CalendarView 实现的日历显示样式,可上下翻页

    Android代码-BGAProgressBar-Android

    [x] Android 系统自带的 ProgressBar 的各种样式 [x] 带百分比数字的水平进度条样式 [x] 带百分比数字的圆形进度条样式 [ ] 彗星进度条样式 [ ] 波浪进度条样式 常见问题 &gt; 1.无法显示进度 - 必须设置「style」为「...

    Android例子源码自带十几种动画的NiftyDialogEffects对话框

    本项目是一个自定义的Dialog项目Nifty Modal Window Effects,提供十多种对话框弹出动画,但是只提供了一种对话框样式,可以在这里看一下网页版的效果http://tympanus.net/Development/ModalWindowEffects/,项目...

    Android中自定义popuWindow和dialog

    在Android的实际开发中dialog和popuwindow,非常常见,但是系统自带的样式已经满足不了我们的项目需求,所以需要我们自定义,这是我自定义的一个例子,希望和大家分享交流

    Android高级编程--源代码

    在每章的讲解中,它会让你通过一系列示例项目逐步掌握Android中的各种新功能和技术,助你取得最圆满的学习效果。本书所介绍的各个应用实例简明扼要且极具实用价值,它们覆盖了Android 1.0的所有基本功能和高级功能...

    Android例子源码自带十几种动画的NiftyDialogEffects对话框.zip

    本项目是一个自定义的Dialog项目Nifty Modal Window Effects,提供十多种对话框弹出动画,但是只提供了一种对话框样式,

    android开发资料大全

    android自带的示例程序 BluetoothChat 变蓝牙串口助手(内含DIY蓝牙遥控车附源码实例教程) Android高手过招 FAQ 网友收集的android开发书籍(可下载哦) 东软集团内部文件《android编程指南》 从零开始Android...

Global site tag (gtag.js) - Google Analytics