xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity" >

   
             android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
       android:orientation="horizontal"
      android:layout_weight="0.5">
                android:text="green"
        android:layout_gravity="center_horizontal"
        android:layout_width="wrap_content"
      android:layout_weight="1"
        android:layout_height="fill_parent"
        android:background="#00aa00"
        />
        
                android:text="blue"
        android:layout_gravity="center_horizontal"
        android:layout_width="wrap_content"
      android:layout_weight="1"
        android:layout_height="fill_parent"
        android:background="#0000aa"
        />
        
   

         android:id="@+id/textView2"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
       android:orientation="vertical"
      android:layout_weight="1">
                android:text="row one"
      
        android:layout_width="fill_parent"
      android:layout_weight="1"
        android:layout_height="wrap_content"
        android:background="#aa0000"
        />
        
                android:text="row two"
       
        android:layout_width="fill_parent"
      android:layout_weight="1"
        android:layout_height="wrap_content"
        android:background="#aaaa00"
        />
        
   
    


更多相关文章

  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. 安卓TextView设置字体竖直排列
  2. Eclipse集成NDK
  3. Android Context上下文理解
  4. android install faild insufficient sto
  5. mac下安装配置android studio
  6. Thinking in Google Doc - ActionBar讲解
  7. Android 电子罗盘开发。
  8. Android使用ImageView引起Missing conten
  9. Android怎么去除Dialog对话框的白色边框
  10. 〖Android〗联想K860 logcat CM11.0出错