主程序很简单了

  setContentView(R.layout.main);

看一下main

 

<?xml version="1.0" encoding="utf-8"?>             android:orientation="vertical" android:layout_width="fill_parent"        android:layout_height="fill_parent">                         android:layout_height="wrap_content" android:text="a checkbox" />                         android:layout_height="wrap_content" android:text="checked checkbox"            android:checked="true" />                           android:layout_height="wrap_content" android:text="new checkbox"            android:background="@drawable/checkbox_background" android:button="@drawable/checkbox" />                        android:layout_height="wrap_content" android:text="new checked checkbox"            android:checked="true" android:background="@drawable/checkbox_background"            android:button="@drawable/checkbox" />             <?xml version="1.0" encoding="utf-8"?>  //schemas.android.com/apk/res/android

 

下载地址:http://www.eoeandroid.com/thread-28706-1-1.html

 

更多相关文章

  1. Android里面编写退出主程序的提示代码
  2. 狂刷Android范例之5:ApiDemos主程序框架分析

随机推荐

  1. 我的第一个android练习
  2. 在非NDK编译条件下使用Android(安卓)Log
  3. Android前台画面和后台service之间通信的
  4. 编写高效的Android代码(提高运行速度,节
  5. Android(安卓)6.0+ TelephonyManager 使
  6. htc android操作
  7. Android(安卓)RxJava 实际应用讲解:联合判
  8. Android(安卓)ID详解
  9. Android应用程序UI硬件加速渲染环境初始
  10. Android(安卓)Architecture Component Ro