美文网首页
style sheme 样式

style sheme 样式

作者: fyg | 来源:发表于2021-08-11 00:01 被阅读0次

要开始学习一个控件时,好的方法是先依次打开项目的themes.xml 文件,在点击里面的一个属性打开 android-sdk-macosx/platforms/android-30/data/res/values/attrs.xml文件 ,在里面搜索你想学习的 控件名称,把该控件里面的所有属性和注释都看一下,你基本就知道这个控件有所有作用了。







<!-- 应用程序的主要品牌颜色。 默认情况下,这是应用于动作栏背景。 -->
<!-- The primary branding color for the app. By default, this is the color applied to the action bar background. -->
<attr name="colorPrimary" format="color" />


<!-- 主要品牌颜色的深色变体。 默认情况下,这是应用于的颜色状态栏(通过 statusBarColor)和导航栏(通过navigationBarColor)。 -->
<!-- Dark variant of the primary branding color. By default, this is the color applied to the status bar (via statusBarColor) and navigation bar (via navigationBarColor). -->
<attr name="colorPrimaryDark" format="color" />


<!-- 应用的辅助品牌颜色。 -->
<!-- The secondary branding color for the app. -->
<attr name="colorSecondary" format="color" />

<!-- 对主要品牌颜色的明亮补充。 默认情况下,这是应用的颜色到框架控件(通过 colorControlActivated)。 -->
 <!-- Bright complement to the primary branding color. By default, this is the color applied to framework controls (via colorControlActivated). -->
<attr name="colorAccent" format="color" />


 <!-- 应用于正常状态下的框架控件的颜色。-->
 <!-- The color applied to framework controls in their normal state. -->
 <attr name="colorControlNormal" format="color" />


<!-- 应用于处于激活(例如选中)状态的框架控件的颜色。 -->
<!-- The color applied to framework controls in their activated (ex. checked) state. -->
<attr name="colorControlActivated" format="color" />



<!-- 应用于框架控件突出显示的颜色(例如涟漪、列表选择器)。 -->
<!-- The color applied to framework control highlights (ex. ripples, list selectors). -->
<attr name="colorControlHighlight" format="color" />


<!-- 在正常状态下应用于框架按钮的颜色。 -->
<!-- The color applied to framework buttons in their normal state. -->
<attr name="colorButtonNormal" format="color" />


<!-- 在正常状态下应用于框架开关拇指的颜色。 -->
<!-- The color applied to framework switch thumbs in their normal state. -->
<attr name="colorSwitchThumbNormal" format="color" />


<!-- 应用于框架进度和正常状态下的搜索栏背景的颜色。
<!-- The color applied to framework progress and seek bar backgrounds in their normal state. -->
 <attr name="colorProgressBackgroundNormal" format="color" />


<!-- 应用于滚动容器边缘效果的颜色。 -->
 <!-- The color applied to the edge effect on scrolling containers. -->
<attr name="colorEdgeEffect" format="color" />




相关文章

  • style sheme 样式

    要开始学习一个控件时,好的方法是先依次打开项目的themes.xml 文件,在点击里面的一个属性打开 androi...

  • JavaScript中的DOM4高级

    访问元素样式(style对象) Style对象代表一个单独的样式声明。通过style样式获取style特性中指定的...

  • 多重样式优先级

    内联样式(Inline style)>内部样式(Internal style sheet)>外部样式(Extern...

  • HTML 样式

    HTML 样式 style 属性用于改变 HTML 元素的样式。 HTML 的 style 属性 style 属性...

  • css 总结

    内部与内联样式内部样式:style属性 adfjk 内联样式:style标签 #div2{ ...

  • 自定义进度条之样式篇

    自定义进度条基础篇之样式表 样式(style) 1.1 系统是默认样式有style="@style/Widget....

  • css基础

    引入css 内联样式,style属性,在HTML标签中写入style=“属性:属性值” 内嵌样式,style标签,...

  • 2018-06-04

    字体的样式 CSS 属性: 字体样式(Font Style) 1 字体样式 {font:font-style fo...

  • WebAPI(二)

    (一)操作元素样式 1.通过style操作元素的样式 语法:元素.style.样式属性名 = '样式属性值'; 代...

  • 属性,值

    style 属性规定元素的行内样式(inline style),style 属性将覆盖任何全局的样式设定元素属性属...

网友评论

      本文标题:style sheme 样式

      本文链接:https://www.haomeiwen.com/subject/otqtbltx.html