Android-ColorsUtil工具类
颜色工具类
public class ColorsUtil {
private ColorsUtil() {
throw new Error("Do not need instantiate!");
}
/**
* 白色
*/
public static final int WHITE = 0xffffffff;
/**
* 白色 - 半透明
*/
public static final int WHITE_TRANSLUCENT = 0x80ffffff;
/**
* 黑色
*/
public static final int BLACK = 0xff000000;
/**
* 黑色 - 半透明
*/
public static final int BLACK_TRANSLUCENT = 0x80000000;
/**
* 透明
*/
public static final int TRANSPARENT = 0x00000000;
/**
* 红色
*/
public static final int RED = 0xffff0000;
/**
* 红色 - 半透明
*/
public static final int RED_TRANSLUCENT = 0x80ff0000;
/**
* 红色 - 深的
*/
public static final int RED_DARK = 0xff8b0000;
/**
* 红色 - 深的 - 半透明
*/
public static final int RED_DARK_TRANSLUCENT = 0x808b0000;
/**
* 绿色
*/
public static final int GREEN = 0xff00ff00;
/**
* 绿色 - 半透明
*/
public static final int GREEN_TRANSLUCENT = 0x8000ff00;
/**
* 绿色 - 深的
*/
public static final int GREEN_DARK = 0xff003300;
/**
* 绿色 - 深的 - 半透明
*/
public static final int GREEN_DARK_TRANSLUCENT = 0x80003300;
/**
* 绿色 - 浅的
*/
public static final int GREEN_LIGHT = 0xffccffcc;
/**
* 绿色 - 浅的 - 半透明
*/
public static final int GREEN_LIGHT_TRANSLUCENT = 0x80ccffcc;
/**
* 蓝色
*/
public static final int BLUE = 0xff0000ff;
/**
* 蓝色 - 半透明
*/
public static final int BLUE_TRANSLUCENT = 0x800000ff;
/**
* 蓝色 - 深的
*/
public static final int BLUE_DARK = 0xff00008b;
/**
* 蓝色 - 深的 - 半透明
*/
public static final int BLUE_DARK_TRANSLUCENT = 0x8000008b;
/**
* 蓝色 - 浅的
*/
public static final int BLUE_LIGHT = 0xff36a5E3;
/**
* 蓝色 - 浅的 - 半透明
*/
public static final int BLUE_LIGHT_TRANSLUCENT = 0x8036a5E3;
/**
* 天蓝
*/
public static final int SKYBLUE = 0xff87ceeb;
/**
* 天蓝 - 半透明
*/
public static final int SKYBLUE_TRANSLUCENT = 0x8087ceeb;
/**
* 天蓝 - 深的
*/
public static final int SKYBLUE_DARK = 0xff00bfff;
/**
* 天蓝 - 深的 - 半透明
*/
public static final int SKYBLUE_DARK_TRANSLUCENT = 0x8000bfff;
/**
* 天蓝 - 浅的
*/
public static final int SKYBLUE_LIGHT = 0xff87cefa;
/**
* 天蓝 - 浅的 - 半透明
*/
public static final int SKYBLUE_LIGHT_TRANSLUCENT = 0x8087cefa;
/**
* 灰色
*/
public static final int GRAY = 0xff969696;
/**
* 灰色 - 半透明
*/
public static final int GRAY_TRANSLUCENT = 0x80969696;
/**
* 灰色 - 深的
*/
public static final int GRAY_DARK = 0xffa9a9a9;
/**
* 灰色 - 深的 - 半透明
*/
public static final int GRAY_DARK_TRANSLUCENT = 0x80a9a9a9;
/**
* 灰色 - 暗的
*/
public static final int GRAY_DIM = 0xff696969;
/**
* 灰色 - 暗的 - 半透明
*/
public static final int GRAY_DIM_TRANSLUCENT = 0x80696969;
/**
* 灰色 - 浅的
*/
public static final int GRAY_LIGHT = 0xffd3d3d3;
/**
* 灰色 - 浅的 - 半透明
*/
public static final int GRAY_LIGHT_TRANSLUCENT = 0x80d3d3d3;
/**
* 橙色
*/
public static final int ORANGE = 0xffffa500;
/**
* 橙色 - 半透明
*/
public static final int ORANGE_TRANSLUCENT = 0x80ffa500;
/**
* 橙色 - 深的
*/
public static final int ORANGE_DARK = 0xffff8800;
/**
* 橙色 - 深的 - 半透明
*/
public static final int ORANGE_DARK_TRANSLUCENT = 0x80ff8800;
/**
* 橙色 - 浅的
*/
public static final int ORANGE_LIGHT = 0xffffbb33;
/**
* 橙色 - 浅的 - 半透明
*/
public static final int ORANGE_LIGHT_TRANSLUCENT = 0x80ffbb33;
/**
* 金色
*/
public static final int GOLD = 0xffffd700;
/**
* 金色 - 半透明
*/
public static final int GOLD_TRANSLUCENT = 0x80ffd700;
/**
* 粉色
*/
public static final int PINK = 0xffffc0cb;
/**
* 粉色 - 半透明
*/
public static final int PINK_TRANSLUCENT = 0x80ffc0cb;
/**
* 紫红色
*/
public static final int FUCHSIA = 0xffff00ff;
/**
* 紫红色 - 半透明
*/
public static final int FUCHSIA_TRANSLUCENT = 0x80ff00ff;
/**
* 灰白色
*/
public static final int GRAYWHITE = 0xfff2f2f2;
/**
* 灰白色 - 半透明
*/
public static final int GRAYWHITE_TRANSLUCENT = 0x80f2f2f2;
/**
* 紫色
*/
public static final int PURPLE = 0xff800080;
/**
* 紫色 - 半透明
*/
public static final int PURPLE_TRANSLUCENT = 0x80800080;
/**
* 青色
*/
public static final int CYAN = 0xff00ffff;
/**
* 青色 - 半透明
*/
public static final int CYAN_TRANSLUCENT = 0x8000ffff;
/**
* 青色 - 深的
*/
public static final int CYAN_DARK = 0xff008b8b;
/**
* 青色 - 深的 - 半透明
*/
public static final int CYAN_DARK_TRANSLUCENT = 0x80008b8b;
/**
* 黄色
*/
public static final int YELLOW = 0xffffff00;
/**
* 黄色 - 半透明
*/
public static final int YELLOW_TRANSLUCENT = 0x80ffff00;
/**
* 黄色 - 浅的
*/
public static final int YELLOW_LIGHT = 0xffffffe0;
/**
* 黄色 - 浅的 - 半透明
*/
public static final int YELLOW_LIGHT_TRANSLUCENT = 0x80ffffe0;
/**
* 巧克力色
*/
public static final int CHOCOLATE = 0xffd2691e;
/**
* 巧克力色 - 半透明
*/
public static final int CHOCOLATE_TRANSLUCENT = 0x80d2691e;
/**
* 番茄色
*/
public static final int TOMATO = 0xffff6347;
/**
* 番茄色 - 半透明
*/
public static final int TOMATO_TRANSLUCENT = 0x80ff6347;
/**
* 橙红色
*/
public static final int ORANGERED = 0xffff4500;
/**
* 橙红色 - 半透明
*/
public static final int ORANGERED_TRANSLUCENT = 0x80ff4500;
/**
* 银白色
*/
public static final int SILVER = 0xffc0c0c0;
/**
* 银白色 - 半透明
*/
public static final int SILVER_TRANSLUCENT = 0x80c0c0c0;
/**
* 高光
*/
public static final int HIGHLIGHT = 0x33ffffff;
/**
* 低光
*/
public static final int LOWLIGHT = 0x33000000;
public static final int MY_ACCOUNT = 0xF53C4C;
}
Android-ColorsUtil工具类的更多相关文章
- 53. Android常用工具类
主要介绍总结的Android开发中常用的工具类,大部分同样适用于Java.目前包括HttpUtils.DownloadManagerPro.ShellUtils.PackageUtils.Prefer ...
- Android 常见工具类封装
1,MD5工具类: public class MD5Util { public final static String MD5(String s) { char hexDigits[] = { '0' ...
- 【转】Android常用工具类
主要介绍总结的Android开发中常用的工具类,大部分同样适用于Java. 目前包括HttpUtils.DownloadManagerPro.ShellUtils.PackageUtils.Prefe ...
- Android基础工具类重构系列一Toast
前言: 一直在考虑写一下Android实际项目中的一些总结,翻看CSDN博客,上一篇已经是一年多曾经. 本系列定位Android基础工具类重构.旨在记录实际项目中经经常使用到的一些工具类,比方Toas ...
- (转载)android 一些工具类汇总
android 一些工具类汇总 作者:曾田生z 字体:[增加 减小] 类型:转载 时间:2016-08-14我要评论 本文给大家汇总介绍了一些常用的Android工具类,非常的简单实用,有需要的小伙伴 ...
- 随笔分类 - Android之工具类
Android之文件搜索工具类 /** * @detail 搜索sdcard文件 * @param 需要进行文件搜索的目录 * @param 过滤搜索文件类型 */ private void sear ...
- Android 系统工具类SystemUtils
包含的功能有: 获取系统中所有APP应用.获取用户安装的APP应用.根据包名和Activity启动类查询应用信息.跳转到WIFI设置.WIFI网络开关.移动网络开关.GPS开关 当前若关则打开 当前若 ...
- Android Sqlite 工具类封装
鉴于经常使用 Sqlite 数据库做数据持久化处理,进行了一点封装,方便使用. 该封装类主要支持一下功能 支持多用户数据储存 支持 Sqlite数据库升级 支持传入 Sql 语句建表 支持 SQLit ...
- Android 常用工具类之SPUtil,可以修改默认sp文件的路径
参考: 1. 利用Java反射机制改变SharedPreferences存储路径 Singleton1900 2. Android快速开发系列 10个常用工具类 Hongyang import ...
- Android常见工具类封装
MD5加密 import android.annotation.SuppressLint; import java.security.MessageDigest; public class MD5 { ...
随机推荐
- cf451C-Predict Outcome of the Game
http://codeforces.com/problemset/problem/451/C A - Predict Outcome of the Game Time Limit:2000MS ...
- Windows系统之hosts文件
对于Hosts文件相信很多Win7的系统用户会比较陌生,其实Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,所以功 ...
- 8.String to Integer (atoi) (INT; Overflow)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. ...
- GridView自定义分页样式(上一页,下一页,到第几页)
今天要为网站做一个文章列表,发现GridView的分页样式很难看,于是结合网上的例子,自己做了一个.不是很美观,不过还是很实用的,先看下效果吧,如图(1). 图(1)GridView分页效果 自定义G ...
- TZOJ 4435 n皇后问题(回溯)
描述 在 n×n 的国际象棋棋盘上放置n个皇后,使得任何一个皇后都无法直接吃掉其他的皇后(任两个皇后都不能处于同一条横行.纵行或斜线上) 输入 输入有多组(直到-1结束) 每组一行 一个整数 n(0& ...
- 关于jni调用报UnsatisfiedLinkError的可能
一.说明 最近在做一个项目,需要使用java去调本地动态连接库,之前做测试的时候直接用pojo进行测试,是能够正常调用的.后面项目需要将接口封装为REST api,所以在spring boot上面开发 ...
- iOS 11 scroll滚动偏移,tableview偏移44,获取view的宽和高
1. tableview 的头部 有44的偏移量 1>.设置 tableview的 属性 tableView.scrollIndicatorInsets = UIEdgeInsets.zero ...
- beego启动找不到conf的原因
beego配置文件路径如下: app.conf内容 httpaddr = "192.168.199.178" httpport = appname = SecProxy runmo ...
- Codeforces 612B. Wet Shark and Bishops 模拟
B. Wet Shark and Bishops time limit per test: 2 seconds memory limit per test: 256 megabytes input: ...
- 解决 Ubuntu 下 sudo 命令执行速度慢的问题
1.首先如果当用登录的用户名不在"/etc/sudoers"文件中,是不能执行sudo命令的.可以用root身份手动修该文件,把当前登录用户名加入该文件中. 2.用"ho ...