码迷,mamicode.com
首页 > 移动开发 > 详细

Android -- TextView、button方法详解(2)

时间:2014-09-19 11:39:45      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:android   style   blog   color   div   sp   log   on   c   

1. button按下状态的改变
Button bt1 = null; // 声明按钮对象
bt1 = (Button) findViewById(R.id.button1); // 获取按钮对象
bt1.setPressed(true); // 设置按下状态。

 

 

Android -- TextView、button方法详解(2)

标签:android   style   blog   color   div   sp   log   on   c   

原文地址:http://www.cnblogs.com/SM-t/p/3980834.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!