android 字体颜色选择器(ColorPicker)介绍

 更新时间:2012年11月23日 10:28:47   作者:  
本文将详细介绍android 字体颜色选择器(ColorPicker)需要了解更多的朋友可以参考下
primary_text_yellow.xml
复制代码 代码如下:

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="@color/yellow"/>
<item android:state_window_focused="false" android:color="@android:color/black"/>
<item android:state_pressed="true" android:color="@color/yellow"/>
<item android:state_selected="true" android:color="@color/yellow"/>
<item android:color="@android:color/black"/>
<!-- not selected -->
</selector>

themes.xml
复制代码 代码如下:

<item name="android:textColor">@color/primary_text_yellow</item>

相关文章

  • Android笔记之:深入为从右向左语言定义复杂字串的详解

    Android笔记之:深入为从右向左语言定义复杂字串的详解

    本篇文章是对Android中为从右向左语言定义复杂字串进行了详细的分析介绍,需要的朋友参考下
    2013-05-05
  • Flutter中嵌入Android 原生TextView实例教程

    Flutter中嵌入Android 原生TextView实例教程

    这篇文章主要给大家介绍了关于Flutter中嵌入Android 原生TextView的相关资料,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
    2020-09-09
  • Android编程获取sdcard音乐文件的方法

    Android编程获取sdcard音乐文件的方法

    这篇文章主要介绍了Android编程获取sdcard音乐文件的方法,涉及Android针对外部存储卡中多媒体文件的相关操作技巧,具有一定参考借鉴价值,需要的朋友可以参考下
    2015-11-11
  • Android入门之源码开发基础教程

    Android入门之源码开发基础教程

    这篇文章主要介绍了Android入门之源码开发基础教程,分析了环境搭建、模拟器使用及编译文件的相关技巧与注意事项,需要的朋友可以参考下
    2016-02-02
  • Android TextView使用SpannableString设置复合文本的方法详解

    Android TextView使用SpannableString设置复合文本的方法详解

    这篇文章主要介绍了Android TextView使用SpannableString设置复合文本的方法,结合实例形式详细分析了Android中SpannableString类的功能及相关用法,需要的朋友可以参考下
    2016-08-08
  • Android实现调用系统分享功能示例的总结

    Android实现调用系统分享功能示例的总结

    这篇文章主要介绍了通过Android调用系统分享文本信息、单张图片、多个文件和指定分享到微信、QQ,同时分享图片和文字的功能示例,小编觉得挺不错,一起跟随小编过来看看吧
    2018-05-05
  • Android 未读消息的红点显示

    Android 未读消息的红点显示

    本篇文章主要介绍了"Android基础—未读消息的红点显示", 在很多APP里面,经常会看到未读消息的小红点,如下图:这个功能用到的是一个控件,叫做BadgeView。 BadgeView的用法很简单,直接把jar文件导入
    2017-04-04
  • web app与原生app的区别

    web app与原生app的区别

    本文主要给大家分析介绍了web app与原生app的区别,以及各自的优势和劣势,推荐给大家,有需要的小伙伴来参考下吧
    2015-03-03
  • Android中使用GridView实现仿微信图片上传功能(附源代码)

    Android中使用GridView实现仿微信图片上传功能(附源代码)

    由于工作要求最近在使用GridView完成图片的批量上传功能,我的例子当中包含仿微信图片上传、拍照、本地选择、相片裁剪等功能,如果有需要的朋友可以看一下
    2017-08-08
  • Android编程常用技巧实例总结

    Android编程常用技巧实例总结

    这篇文章主要介绍了Android编程常用技巧实例总结,包括Android对话框、分辨率、资源、字体等操作技巧,具有一定参考借鉴价值,需要的朋友可以参考下
    2015-11-11

最新评论