/*公用css*/html,body{ margin:0; padding:0; text-align:center; font-size:12px; color:#45484b;}input,button,select,textarea{ outline:none;}textarea{resize...
分类:
Web程序 时间:
2014-09-04 14:37:29
阅读次数:
218
1.在normal mode下,tp button也是和其它触摸事件一样,以坐标形式的input_event进行上报。在初始化时会通过tpd_button_setting()函数根据定义在tpd_custom_XXX.h文件中的配置信息将虚拟按键的坐标信息写在/sys/board_properties/virtualkeys.mtk-tpd中。工作时,tp driver将按下的点的坐标进行上报,A...
分类:
移动开发 时间:
2014-09-04 09:46:47
阅读次数:
196
Android通过http协议POST传输方式如下:方式一:HttpPost(import org.apache.http.client.methods.HttpPost)代码如下:private Button button1,button2,button3;private TextView tex...
分类:
移动开发 时间:
2014-09-04 09:40:18
阅读次数:
185
在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、Tex...
分类:
移动开发 时间:
2014-09-04 09:38:37
阅读次数:
187
@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; btn.frame = CGRe...
分类:
移动开发 时间:
2014-09-04 09:34:27
阅读次数:
194
概述在项目中经常用到uploadify上传插件,但是FLASH按钮的外观往往跟我们网页的设计的主题色不太搭配。这时就需要对其样式进行修改。样式文件是uploadify.css.打开这个文件后,你会看见CSS设置的按钮样式。 1 .uploadify-button { 2 background...
分类:
Web程序 时间:
2014-09-03 21:16:57
阅读次数:
278
button.layer.cornerRadius = 10 // 这个值根据你想要的效果可以更改button.clipsToBounds = true这种方法不止可以设置按钮,UIView应该都可以设置,ImageView我试过ok,其他的UIKit用到了再试
分类:
移动开发 时间:
2014-09-03 16:32:36
阅读次数:
169
新建两个类MainViewController/ButtonViewButtonView.h#import<UIKit/UIKit.h>
@interfaceButtonView:UIView
//实现target-action设计模式
//点击的时候让谁去执行方法
@property(nonatomic,assign)idtarget;
//要执行的方法
@property(nonatomic,assign)SELaction;
//..
分类:
其他好文 时间:
2014-09-03 11:25:27
阅读次数:
254
在Android应用开发过程中经常会用到ListView,并且每次在item中都要对点击事件进行监听。在给按钮添加OnClickListener时,一般会下意识的在getView()中找到每一个Button并new一个OnClickListener分配给这个Button,并将position赋给这个...
分类:
其他好文 时间:
2014-09-02 19:32:45
阅读次数:
211
UIActionSheet是在iOS弹出的选择按钮项,可以添加多项,并为每项添加点击事件。为了快速完成这例子,我们打开Xcode , 先建立一个single view application。然后再xib文件添加一个button,用来弹出sheet view。1、首先在.h文件中实现协议加代码的地方...
分类:
移动开发 时间:
2014-09-02 17:42:05
阅读次数:
299