随笔分类 - Attribute
摘要:有时候做自定义控件时就会遇到命名冲突,改变有冲突的名字自然是最直接有效的方式,但是感觉很傻。我搜了下别人的解决方案,觉得很值得借鉴。就是把重名的属性,独立出来写一下,然后在定义时直接写属性名字即可。比如:下面两个declare-styleable中icon重名了,我们就需要将icon独立出来写。 ...
阅读全文
摘要:1. 框架定义: 2. color:颜色值,指定这个属性必须输入的是颜色值3. boolean:布尔值,指定这个属性必须输入的是boolean类型(true/false)4. dimension:尺寸值。注意,这里如果是dp那就会做像素转换为dip5. float:浮点值。6. integer:整...
阅读全文
搜索
随笔分类
- ■shape | selector | layer-list(10)
- ★Install | Error | Setting(15)
- ♠Paint | Canvas | Path(9)
- ActionBar(10)
- Activity(5)
- Adapter(10)
- Android Studio(7)
- Animation(10)
- AsyncTask | Loader(3)
- Attribute(2)
- Bitmap(5)
- BroadcastReceiver(1)
- Button(5)
- Cache | Optimiz(31)
- CheckBox(1)
- color | theme(3)
- DB | Prefs(8)
- Design Pattern(1)
- Dialog(4)
- Eclipse(14)
- EditText(17)
- File | IO(4)
- Fragment(2)
- Git(3)
- Gradle(4)
- GridLayout(2)
- GridView(3)
- Handler(4)
- ImageView(24)
- Intent(1)
- Java(10)
- Layout(4)
- ListView(20)
- Net | Http | Wifi(11)
- Notification(2)
- Other Skills(39)
- OtherView(10)
- PopupWindow(1)
- ProgressBar(6)
- ScrollView(4)
- SeekBar(3)
- Selector(2)
- Service(1)
- Software(2)
- Spinner(1)
- Switch(3)
- TextView(5)
- Toast(2)
- ViewPager(4)
- WebView(2)
- WindowUtil(2)
- Xml | Html | Json(4)
- 更多
最新评论
- 1. Re:Android Studio利用Gradle删除没有使用到的资源和代码文件
- return (paramIntent != null) && (paramIntent.getExtras() == null); 自动优化后的结果应该是这样吧?...
- --and1990
- 2. Re:用TextPaint来绘制文字
灰常感谢
- --TogetherLaugh
- 3. Re:详解Paint的setPathEffect(PathEffect effect)
- hao wen
- --埋葬沧海