bcab94e54f
When only a single widget in a LinearLayout defines a weight, it is more efficient to assign a width/height of 0dp to it since it will absorb all the remaining space anyway. With a declared width/height of 0dp it does not have to measure its own size first.
15 lines
1 KiB
XML
15 lines
1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content" android:paddingTop="1dp" android:paddingBottom="1dp" android:paddingRight="8dp">
|
|
|
|
<LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
|
|
<CheckBox android:id="@+id/check_download_item" android:layout_width="wrap_content" android:layout_height="wrap_content"
|
|
android:gravity="center_vertical" android:focusable="false" />
|
|
</LinearLayout>
|
|
<TextView android:id="@+id/download_item" android:gravity="center_vertical" android:layout_width="0dp" android:layout_height="wrap_content"
|
|
android:maxLines="7" android:layout_weight="1" style="@style/ListText.Small"></TextView>
|
|
|
|
<TextView android:id="@+id/download_descr" android:layout_marginLeft="3dp" android:gravity="right" android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" style="@style/ListText.Small"></TextView>
|
|
|
|
</LinearLayout>
|