设为首页 加入收藏

TOP

Android开发5大布局方式详解(三)
2017-10-13 10:35:47 】 浏览:9823
Tags:Android 开发 布局 方式 详解
sp;     android:background="#008080" 
  •         android:layout_width="wrap_content" 
  •         android:layout_height="fill_parent" 
  •         android:layout_weight="1"/> 
  •       
  •     <TextView 
  •         android:text="blue" 
  •         android:gravity="center_horizontal" 
  •         android:background="#0000aa" 
  •         android:layout_width="wrap_content" 
  •         android:layout_height="fill_parent" 
  •         android:layout_weight="1" 
  •         /> 
  •       
  •     <TextView 
  •         android:text="orange" 
  •         android:gravity="center_horizontal" 
  •         android:background="#FFA500" 
  •         android:layout_width="wrap_content" 
  •         android:layout_height="fill_parent" 
  •         android:layout_weight="1" 
  •         /> 
  •           
  •     </LinearLayout>   
  •     <LinearLayout 
  •     android:orientation="vertical" 
  •     android:layout_width="fill_parent" 
  •     android:layout_height="fill_parent" 
  •     android:layout_weight="1"> 
  •       
  •     <TextView 
  •         android:text="row one" 
  •         android:textSize="15pt" 
  •         android:background="#aa0000" 
  •         android:layout_width="fill_parent" 
  •         android:layout_height="wrap_content" 
  •         android:layout_weight="1" 
  •         /> 
  •     <!--  -->   
  •   
  • 首页 上一页 1 2 3 4 5 6 7 下一页 尾页 3/7/7
    】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
    上一篇ListFragment的使用 下一篇Android快乐贪吃蛇游戏实战项目开..

    最新文章

    热门文章

    Hot 文章

    Python

    C 语言

    C++基础

    大数据基础

    linux编程基础

    C/C++面试题目