android中自带的主题(theme)的集锦:
- •android:theme="@android:style/Theme.Dialog" 将一个Activity显示为对话框模式
- •android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
- •android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
- •android:theme="@android:style/Theme.Light" 背景为白色
- •android:theme="@android:style/Theme.Light.NoTitleBar" 白色背景并无标题栏
- •android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
- •android:theme="@android:style/Theme.Black" 背景黑色
- •android:theme="@android:style/Theme.Black.NoTitleBar" 黑色背景并无标题栏
- •android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
- •android:theme="@android:style/Theme.Wallpaper" 用系统桌面为应用程序背景
- •android:theme="@android:style/Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
- •android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
- •android:theme="@android:style/Translucent" 半透明效果
- •android:theme="@android:style/Theme.Translucent.NoTitleBar" 半透明并无标题栏
- •android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" 半透明效果,无标题栏,全屏
- •android:theme="@android:style/Theme.Panel"
- •android:theme="@android:style/Theme.Light.Panel"
android中系统自带的样式(style)的集锦:
Android平台定义了三种字体大小。
- "?android:attr/textAppearanceLarge"
- "?android:attr/textAppearanceMedium"
- "?android:attr/textAppearanceSmall"
使用方法:
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:textAppearance="?android:attr/textAppearanceMedium"
- android:textAppearance="?android:attr/textAppearanceSmall"
或者
- style="?android:attr/textAppearanceLarge"
- style="?android:attr/textAppearanceMedium"
- style="?android:attr/textAppearanceSmall"
Android字体颜色
- android:textColor="?android:attr/textColorPrimary"
- android:textColor="?android:attr/textColorSecondary"
- android:textColor="?android:attr/textColorTertiary"
- android:textColor="?android:attr/textColorPrimaryInverse"
- android:textColor="?android:attr/textColorSecondaryInverse"
AndroidProgressBar
- style="?android:attr/progressBarStyleHorizontal"
- style="?android:attr/progressBarStyleLarge"
- style="?android:attr/progressBarStyleSmall"
- style="?android:attr/progressBarStyleSmallTitle"
分隔符 横向:
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dip"
- android:background="?android:attr/listDivider" />
分隔符 纵向:
- <View android:layout_width="1dip"
- android:layout_height="fill_parent"
- android:background="?android:attr/listDivider" />
复制代码
CheckBox
- style="?android:attr/starStyle"
其它
- //类似标题栏效果的TextView
- style="?android:attr/listSeparatorTextViewStyle"
-
- //其它有用的样式
- android:layout_height="?android:attr/listPreferredItemHeight"
-
- android:paddingRight="?android:attr/scrollbarSize"
-
- style="?android:attr/windowTitleBackgroundStyle"
-
- style="?android:attr/windowTitleStyle"
-
- android:layout_height="?android:attr/windowTitleSize"
-
- android:background="?android:attr/windowBackground"
分享到:
相关推荐
android的系统自带style,用于设置android的activity主题样式
Android字体,分析了Android系统自带的4种样式效果,以及对思源黑体的安装和实现进行详解。最后自定义字体TextView(ZFontTextView)。使用工具Android Studio 软件开发设计:PHP、QT、应用软件开发、系统软件开发、...
这个demo是关于android中继承Dialog重新自定义一个ProgressDialog。 需求:带加载图片和文字说明,可定时停止也可被动中断。 如有BUG或者不完善,欢迎小伙伴们提出~
包含android系统自带的,免费公开的icons集合,有每个图标的样式和英文名称,包括桌面的,menu菜单里的所有图标,使用时不用下载,直接通过代码引用即可。
由于项目需求,最近在研究Spinner,发现系统自带的spinner的字体大小和颜色没法修改,于是查找资料实现修改系统自带Spinner字体大小和颜色的功能;并且该demo还实现了自定义Spinner样式以及实现hint的效果,本人第一...
Android系统中自带样式分享,需要的朋友可以参考下
1.直接加载android自带的ArrayAdapter,SimpleAdapter; 2.自定义继承BaseAdapter的适配器。 对于适配器加载自定义的xml布局文件,修改该Spinner样式较简单,就是在定义的xml布局文件中修改显示的样式就可以。但对于...
Android Studio实现个人记账系统源码。基于安卓基础知识点开发的个人...7-使用Android自带数据库,熟练创建表,并进行增删改查 8-定义drawable文件,设定布局以及控件样式 9-使用MPAndroidChart第三方框架绘制柱状图
android 日历自定义样式 改变android自带的日历控件,使日历控件更美观
自带一键清除按钮,密码显示与隐藏按钮,也可自定义资源。还有多种输入框样式可供选择
android自带的输入法,在软键盘上实现焦点移动,支持上下左右按键,并支持回车输入,文档以LatinIME为例
android:attr/textAppearanceLargeInverse"//文字外观,这里引用的是系统自带的一个外观,?表示系统是否有这种外观,否则使用默认的外观。不知道这样理解对不对? 属性名称描述 android:autoLink设置是否...
用CalendarView 实现的日历显示样式,可上下翻页
[x] Android 系统自带的 ProgressBar 的各种样式 [x] 带百分比数字的水平进度条样式 [x] 带百分比数字的圆形进度条样式 [ ] 彗星进度条样式 [ ] 波浪进度条样式 常见问题 > 1.无法显示进度 - 必须设置「style」为「...
本项目是一个自定义的Dialog项目Nifty Modal Window Effects,提供十多种对话框弹出动画,但是只提供了一种对话框样式,可以在这里看一下网页版的效果http://tympanus.net/Development/ModalWindowEffects/,项目...
在Android的实际开发中dialog和popuwindow,非常常见,但是系统自带的样式已经满足不了我们的项目需求,所以需要我们自定义,这是我自定义的一个例子,希望和大家分享交流
在每章的讲解中,它会让你通过一系列示例项目逐步掌握Android中的各种新功能和技术,助你取得最圆满的学习效果。本书所介绍的各个应用实例简明扼要且极具实用价值,它们覆盖了Android 1.0的所有基本功能和高级功能...
本项目是一个自定义的Dialog项目Nifty Modal Window Effects,提供十多种对话框弹出动画,但是只提供了一种对话框样式,
android自带的示例程序 BluetoothChat 变蓝牙串口助手(内含DIY蓝牙遥控车附源码实例教程) Android高手过招 FAQ 网友收集的android开发书籍(可下载哦) 东软集团内部文件《android编程指南》 从零开始Android...