В приложении макет камеры она имеет:Нужна помощь в понять layout_weight = "1"
camera.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/app_root"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/preview_frame"/>
<include layout="@layout/camera_control"/>
</LinearLayout>
и preview_frame.xml является
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frame_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
.....
</RelativeLayout>
и camera_control. xml is:
<ControlPanelLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/control_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="76dp"
android:background="@drawable/bg_camera_pattern">
.....
</ControlPanelLayout>
My вопрос в том, что такое 'layout_weight = "1"' в файле preview_frame.xml? Я прочитал о layout_weight, но большую часть времени он использовал с layout_width = "0px" И в camera_control у него нет указателя макета.
Но в данном случае это не так.
спасибо.