android里面的权重weight,表示的是窗体里面的各个控件出现的顺序,也叫“出现”的优先级。
通常数字越大表示优先级越低,数字越小表示优先级越大;
<SrufaceView
android:layout_weight="100"/控件优先级为100
android:id="@+id/sv"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<RelativeLayout
android:layout_weight="0"//优先级为0,表示最先出现。
Android:layout_width=”fill_parent”
Android:layout_height=”wrap_content”
/>