登录
首页 » Android » Android 色环取色器模块代码

Android 色环取色器模块代码

于 2023-03-16 发布 文件大小:572.01 kB
0 186
下载积分: 2 下载次数: 1

代码说明:

Android 色环风格的取色器,用来拾取颜色,用于在字体颜色选择时,提供方便,在弹出的色环中,鼠标单选任意处,会将此点的颜色赋值给文字,改变文字的颜色。关于色环的定义,请参见以下代码部分:   private Paint mPaint;// 渐变色环画笔   private Paint mCenterPaint;// 中间圆画笔   private Paint mLinePaint;// 分隔线画笔   private Paint mRectPaint;// 渐变方块画笔   private Shader rectShader;// 渐变方块渐变图像   private float rectLeft;// 渐变方块左x坐标   private float rectTop;// 渐变方块右x坐标   private float rectRight;// 渐变方块上y坐标   private float rectBottom;// 渐变方块下y坐标   private final int[] mCircleColors;// 渐变色环颜色   private final int[] mRectColors;// 渐变方块颜色   private int mHeight;// View高   private int mWidth;// View宽   private float r;// 色环半径(paint中部)   private float centerRadius;// 中心圆半径   private boolean downInCircle = true;// 按在渐变环上   private boolean downInRect;// 按在渐变方块上   private boolean highlightCenter;// 高亮   private boolean highlightCenterLittle;// 微亮   更多代码细节请下载本源码。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Android 记事本 APP
    Android 记事本APP,有分类,支持增删改查。
    2023-03-05 23:05:10下载
    积分:1
  • viepager联动效果
    能够实现画面的联动效果,点击一个button,viewpager会响应按钮的动作事件
    2022-02-20 19:29:03下载
    积分:1
  • cbNotepad
    Windows、Android、IOS通用的记事本程序源码。类似于Windows系统的Notepad.exe。移动平台的编程,早已出现非常好的可视化环境,那就是xeC++Builder或xeDelphi。建议增加这些分类。(Windows, Android, IOS general Notepad program source code. Notepad.exe, which is similar to the Windows system. There has been a very good visualization environment for mobile platform programming, that is, xeC++Builder or xeDelphi. It is suggested that these categories be added.)
    2018-07-13 08:35:09下载
    积分:1
  • vgprznb3
    多载波以及扩频通信系统相关的书,主要内容有OFDM以及多载波CDMA,偏重于工程感念,理论性不是很强(Multicarrier and spread spectrum communication system related books, including OFDM and multicarrier CDMA, focus on engineering perception, the theory is not very strong)
    2019-03-27 22:27:57下载
    积分:1
  • xmpp通信
    用于xmpp通信协议的  安卓客户端程序,便于开发者迅速使用,而且可以直接导入到eclipse中,非常方便,代码的质量很高
    2022-03-14 16:59:40下载
    积分:1
  • ViewPager和Fragment结合,利用(HorizontalScrollView)实现指示器与ViewPager同时滑动的动态效果
        首先是布局文件,布局中需要一个HorizontalScrollView用来承载所有标题和指示器,注意HorizontalScrollView中只能有一个子布局,所以要添加一个Linearlayout(竖向的),这里为什么是竖向的呢?因为这个线性布局中要加入一个横向的线性布局用来动态增加所有标题内容,和一个标题下面的指示器.
    2022-03-05 04:08:36下载
    积分:1
  • Android_Communication_design
    andriod通信设计的硕士论文。清华大学论文。非常详细。嵌入式设计必备资料。(andriod communication design master' s thesis. Tsinghua University thesis. Very detailed. Essential information embedded design.)
    2011-09-30 23:45:37下载
    积分:1
  • cocos2d-x android helloworld
    简单的cocos2d-x android helloworld 项目,用于学习cocos2d-x android 开发。如果环境配置好,可做适当的修改来编写新的android cocos2d-x程序。其中主要修改android.mk文件来修改需要编译的cpp文件。本demo使用VS编写,通过cygwin编译,最后在eclipse中成功发布到android手机上。
    2022-02-28 16:17:46下载
    积分:1
  • AndroidNTRIPClient-Source
    Android 版的GPS NTRIP协议的客户端源码。通过网络TCP/IP通信。(Android version of the GPS NTRIP protocol client source code. Through the network TCP/IP communication.)
    2013-04-23 11:27:48下载
    积分:1
  • Client-Service-json
    Android C/s 模式的手机客户端与服务器端的json数据传输,内含有大量知识点。(Json data transfer mobile client and server-side Android C/s mode, which contains a lot of knowledge.)
    2014-05-19 14:13:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载