首页 > 移动平台 > 详细

Android---->FrameLayout布局方式

时间:2016-07-31 00:08:36      阅读:352      评论:0      收藏:0      [点我收藏+]

技术分享

技术分享

技术分享

技术分享

 

main.xml布局代码分析-->实现一个渐变图案

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <TextView  
        android:layout_width="320dp" 
        android:layout_height="320dp" 
        android:background="#000011"
        android:layout_gravity="center"
        />
    <TextView  
        android:layout_width="280dp" 
        android:layout_height="280dp" 
        android:background="#004433"
        android:layout_gravity="center"
        />
    <TextView  
        android:layout_width="240dp" 
        android:layout_height="240dp" 
        android:background="#00aa00"
        android:layout_gravity="center"
        />
    <TextView  
        android:layout_width="200dp" 
        android:layout_height="200dp" 
        android:background="#00dd00"
        android:layout_gravity="center"
        />
</FrameLayout>

 

Android---->FrameLayout布局方式

原文:http://www.cnblogs.com/yihujiu/p/5721974.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!