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. 高性能缓存系统(Memcached)的实例介绍
  2. c#中Noto Sans字体支持韩文的实例教程
  3. ItemsControl 的布局控件实例
  4. C# 中十进制与二进制、十六进制、八进制
  5. 分享用.Net Core实现图片上传下载的实例
  6. C#给图片增加文字实例代码
  7. ap.net core实例教程之创建一个新项目
  8. 二级域名绑到特定的控制器实例教程
  9. 常见设计原则实例详解
  10. asp.net core实例教程之环境设置