本篇记录RelativeLayout中实现权重效果
先上效果图
然后上布局文件,根据代码来说
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="120dp"
android:background