<TextView        android:id="@+id/textView1"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:text="@string/hello_world" />    <Button        android:id="@+id/button1"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:layout_alignLeft="@+id/textView1"        android:layout_below="@+id/textView1"        android:layout_marginLeft="49dp"        android:layout_marginTop="50dp"        android:onClick="OnMySelfClick"        android:text="Button" />
 public void OnMySelfClick(View v)          {              final TextView text = (TextView) findViewById(R.id.textView1);              text.setText("东哥好。");              }  

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Procedure V2介绍
  2. docker容器跨主机互通
  3. 五行代码实现在小程序中接入微信登录
  4. 加速数字化转型的2大原因是什么?
  5. SHELL监控网站SSL证书有效期
  6. 北大国发院SSCI期刊等级分区什么鬼?
  7. mongodb大数据分页
  8. Spark On HBase
  9. 云数据库HBase企业级安全解析
  10. 重构单体为微服务