摘要: OnKeyListener(键盘事件) 正则表达式 w:任意字符 +:一个或一个以上字符 1 TextView tv=(TextView) findViewById(R.id.keyTV02); 2 EditText input=(EditText) findViewById(R.id.keyET0 阅读全文
posted @ 2017-05-27 13:21 锦绣河山锦 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Toast信息提示框 1 Button bt1=(Button)findViewById(R.id.Tbt01); 2 Button bt2=(Button)findViewById(R.id.Tbt02); 3 bt1.setOnClickListener(new OnClickListener( 阅读全文
posted @ 2017-05-27 13:19 锦绣河山锦 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 事件处理接口 接口名称 描述 DialogInterface.OnClickListener 对话框单击事件处理接口 DialogInterface.OnCancelListener 对话框取消事件处理接口 DialogInterface.OnDismissListener 对话框隐藏事件处理接口 阅读全文
posted @ 2017-05-27 13:18 锦绣河山锦 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1 TextView tv=(TextView)findViewById(R.id.TV); 2 tv.setMovementMethod(ScrollingMovementMethod.getInstance());//滚动文本 3 SeekBar sb=(SeekBar)findViewById 阅读全文
posted @ 2017-05-27 13:16 锦绣河山锦 阅读(91) 评论(0) 推荐(0) 编辑