效果图: 源代码:SwitchButton.h 与SwitchButton.m//// SwitchButton.h// SwitchButtonDemo1.0//// Created by Lisa on 14-10-27.// Copyri...
分类:
其他好文 时间:
2014-10-27 19:21:29
阅读次数:
190
定制二选一按钮SwitchButton效果:源码:SwitchButton.h 与SwitchButton.m//// SwitchButton.h// KongJian//// Created by YouXianMing on 14/10/24.// Copyright (c) 2014...
分类:
其他好文 时间:
2014-10-24 22:05:24
阅读次数:
490
@RemoteViewpublic class Button extends TextView { public Button(Context context) { this(context, null); } public Button(Context context, Attribu...
分类:
移动开发 时间:
2014-10-09 19:36:07
阅读次数:
279
本文转自:http://blog.csdn.net/swust_chenpeng/article/details/19967501我将原文的控件进行了一些修改,去掉了原来控件的外边框,只留下重要的遮罩、背景和滑块。并且可以在布局文件中预览(预览效果不是太好,凑合看看还可以)。自己修改了下监听器,增加...
分类:
其他好文 时间:
2014-07-22 00:18:36
阅读次数:
289
刚开始接触开关样式的按钮是在IOS系统上面,它的切换以及滑动十分帅气,深入人心。所谓的开关按钮,就是只有2个状态:on和off,下图就是系统IOS
7上开关按钮效果。起初我在android上我只会使用CheckBox去满足对应的功能。后来,查看开发文档发现,android也有了自己的原生态开关控件,...
分类:
其他好文 时间:
2014-06-09 15:56:47
阅读次数:
356
版本:1.0日期:2014.5.17 2014.6.1版权:© 2014 kince 转载注明出处 在介绍SwitchButton之前,先来看一下系统Button是如何实现的。源码如下:@RemoteView
public class Button extends TextView {
public Button(Context context) {
this(conte...
分类:
移动开发 时间:
2014-06-01 17:27:10
阅读次数:
684