Android——RelativeLayout

Android——RelativeLayout,第1张

概述代码:<?xmlversion="1.0"encoding="utf-8"?><RelativeLayoutxmlns:android="http://schemas.android.com/apkes/android"xmlns:tools="http://schemas.android.comools"android:layout_width="match_pare
代码:
<?xml version="1.0" enCoding="utf-8"?>
<relativeLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"
xmlns:tools="http://schemas.androID.com/tools"
androID:layout_wIDth="match_parent"
androID:layout_height="match_parent">
<VIEw
androID:ID="@+ID/VIEw_1"
androID:layout_wIDth="200dp"
androID:layout_height="200dp"
androID:background="#09C7F7">

<VIEw
androID:ID="@+ID/VIEw_2"
androID:layout_wIDth="200dp"
androID:layout_height="200dp"
androID:background="#FFCC00"
androID:layout_toRightOf="@+ID/VIEw_1"
>
<linearLayout
androID:ID="@+ID/ll_1"
androID:layout_wIDth="match_parent"
androID:layout_height="200dp"
androID:orIEntation="horizontal"
androID:layout_below="@+ID/VIEw_1"
androID:background="#38F709"
androID:padding="20dp">

<VIEw
androID:ID="@+ID/VIEw_3"
androID:layout_wIDth="200dp"
androID:layout_height="200dp"
androID:background="#FFCC00">
<relativeLayout
androID:layout_wIDth="200dp"
androID:layout_height="200dp"
androID:background="#EE113D">
</relativeLayout>

</linearLayout>


</relativeLayout>
运行截图:

 

 

 
总结

以上是内存溢出为你收集整理的Android——RelativeLayout全部内容,希望文章能够帮你解决Android——RelativeLayout所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1048287.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存