<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. android 权限明细
  2. Android常用Dialog总结
  3. android 编译问题 java 和 javac 版本不
  4. Android长度单位详解(dp、sp、px、in、pt
  5. ProgressBar简介
  6. Eclipse搭建Android开发环境
  7. Android之LinearLayout(线性布局)
  8. Ubuntu下安装Android SDK
  9. Android开发经验总结——对话框的使用
  10. Android Studio 关联项目软链接