上一页 1 ··· 43 44 45 46 47
摘要: Android 事件处理(—)http://www.cnblogs.com/shenzhoulong/archive/2011/03/09/1977760.html 阅读全文
posted @ 2012-10-08 17:12 似水流云 阅读(113) 评论(0) 推荐(0) 编辑
摘要: setAntiAlias:设置画笔的锯齿效果。setColor:设置画笔的颜色。setARGB:设置画笔的a,r,p,g的值。setAlpha:设置Alpha的值。setTextSize:设置字体尺寸。setStyle:设置画笔的风格,空心或者实心。setStrokeWidth:设置空心的边框宽度。getColor:得到画笔的颜色。getAlpha:得到画笔的Alpha值。 阅读全文
posted @ 2012-10-08 17:00 似水流云 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Color.BLACK 黑色 Color.BLUE 蓝色Color.CYAN 青绿色 Color.DKGRAY 灰黑色Color.YELLOW 黄色 Color.GRAY 灰色Color.GREEN 绿色 Color.LTGRAY 浅灰色Color.MAGENTA 红紫色 Color.RED 红色Color.TRANSPARENT 透明 Color.WHITE 白色 阅读全文
posted @ 2012-10-08 16:44 似水流云 阅读(2507) 评论(0) 推荐(0) 编辑
摘要: android图形系统中的一个重要概念就是Surface,View及其子类(如TextView和Button)要画在Surface上。每个Surface创建一个Canvas对象(但属性时常改变),用来管理View在Surface上的绘图操作 阅读全文
posted @ 2012-10-08 11:47 似水流云 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 今天对api中style下的theme整个摸了一遍。我将api中theme分为两种类型来实验:一种是api Level为11的,一种是11以下的。level为11的用的是3.0的模拟器,11以下用的是N1,2.3.3的系统。这里我是统一将theme写在AndroidManifest.xml中定义,如下图:先总结level为11以下的theme:1、Theme:它的意思为默认状态,即如果theme这里不填任何属性的时候,默认为Theme。api原文为:The default system theme. This is the theme used for activities that have 阅读全文
posted @ 2012-09-24 17:52 似水流云 阅读(246) 评论(0) 推荐(0) 编辑
摘要: =============Arrays工具类=================Arrays:用于操作数组工具类,里面定义了常见操作数组的静态方法。常见的有:二分查找。排序。将数组变成字符串。int[] arr = { 4, 1, 5, 8, 2, 9 };System.out.println(Arrays.toString(arr));// 输出 原始数组 [4, 1, 5, 8, 2, 9]// 对arr进行排序,默认是从小到大。Arrays.sort(arr);System.out.println(Arrays.toString(arr));// 输出 排序[1, 2, 4, 5, 8, 阅读全文
posted @ 2012-09-24 15:11 似水流云 阅读(245) 评论(0) 推荐(0) 编辑
摘要: listView.setCacheColorHint(0); 或者android:cacheColorHint="#000000" 去除listview的拖动背景色自定义listview的时候,当你不使用android:cacheColorHint=“#00000000”会出现下面选中一个空间黑色底色的情况,破坏整体美观度:当你不使用android:listSelector属性,默认会显示选中的item为橙黄底色,有时候我们需要去掉这种效果: 阅读全文
posted @ 2012-09-24 11:16 似水流云 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 转载自http://www.htcplayer.com/thread-2852-1-1.html动画类型Android的animation由四种类型组成XML中alpha渐变透明度动画效果scale渐变尺寸伸缩动画效果translate画面转换位置移动动画效果rotate画面转移旋转动画效果JavaCode中AlphaAnimation渐变透明度动画效果ScaleAnimation渐变尺寸伸缩动画效果TranslateAnimation画面转换位置移动动画效果RotateAnimation画面转移旋转动画效果Android动画模式Animation主要有两种动画模式:一种是tweened an 阅读全文
posted @ 2012-09-24 11:09 似水流云 阅读(272) 评论(0) 推荐(0) 编辑
摘要: declare-styleable是给自定义控件添加自定义属性用的1.首先,先写attrs.xml<?xml version="1.0" encoding="utf-8"?><resources> <declare-styleable name="TestAttr"> <attr name="name" format="reference" /> <attr name="age"> <flag name=&qu 阅读全文
posted @ 2012-09-18 13:24 似水流云 阅读(475) 评论(0) 推荐(0) 编辑
上一页 1 ··· 43 44 45 46 47