-
Android 色环取色器模块代码
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;// 微亮
更多代码细节请下载本源码。
- 2023-03-16 20:05:04下载
- 积分:1
-
海康威视视频监控Android手机端
使用设备为海康威视的网络监控设备,提供jar包,进行Android手机端研发,主要功能包括实时监控视频查看,历史记录查看,监控设备的列表实时更新,已经版本网络更新等功能,以及上位机更新手机数据库文件。
- 2022-04-16 01:34:44下载
- 积分:1
-
TVINFOR4.04
allwinner a10 AV-IN驱动及android DEMO
- 2013-10-22 15:42:24下载
- 积分:1
-
Cards-UI-master
卡片式View,支持单个卡片,item为卡片的ListView
使用:
CardListView list = ...
list.setCardTheme(CardTheme.Dark)
CardAdapter adapter = new CardAdapter(this, android.R.color.holo_blue_dark)
list.setAdapter(adapter)
// Alternatively, you can pass a context and string resources in place of strings
// CardHeader has an optional second parameter for a subtitle
CardHeader header = new CardHeader( I m a header )
// You can optionally set an action to the header
// Specifying no action title will default to See More
header.setAction( See More , new CardHeader.ActionListener() {
@Override
public void onHeaderActionClick(CardHeader header) {
// Do whatever you want
}
})
// Add the header to the adapter, automatically notifies the list
adapter.add(header)
// Again, you can pass a context and string resources in place of strings
Card card = new Card( Hello , My name is Aidan )
adapter.add(card) (This library is no longer maintained, as this implementation is generally frowned upon in the new Google Material design guidelines, excluding certain situations (like Google Keep type UI). See the new CardView APIs in the Support Library.)
- 2015-01-24 15:06:35下载
- 积分:1
-
android gridview 实例
girdview 读取 数组中数据 至 gridvew显示
- 2013-03-16下载
- 积分:1
-
图片手势
支持图片放大缩小旋转移动等等。
- 2022-06-14 10:25:28下载
- 积分:1
-
Android 屏幕录制功能的实现及源码范例
具体实现步骤:
1.申请权限,具体来说就是在 AndroidManifest 中添加权限
2.获取 MediaProjectionManager 实例,MediaProjectionManager 也是系统服务的一种,通过getSystemService来获取实例。
3.发起屏幕捕捉请求
4.获取 MediaProjection,通过onActivityResult返回结果获取MediaProjection。
5.5 创建虚拟屏幕,实际录制内容的是屏幕镜像,通过MediaRecorder将屏幕内容录制下来,并且存成 video 文件。
- 2022-06-20 08:40:50下载
- 积分:1
-
android_key
android新增按键值流程,从底层到中间层再到上层app,对linux和android framework有个一定的认识(android key value added processes, from the bottom to the middle layer and then to the upper app, android framework for linux and have a certain understanding of)
- 2013-10-09 11:34:19下载
- 积分:1
-
android ExpandableTextView 例子源码下载
android ExpandableTextView 例子源码下载
- 2015-05-20下载
- 积分:1
-
android拍照、录制视频并上传至服务器 实例下载(有图有源码)
拍照、录制视频、上传、服务器配置、预览视频等功能都实现了
- 2013-02-07下载
- 积分:1