OsmAnd/OsmAnd/res/layout/download_build_list_item.xml
Nelson A. de Oliveira bcab94e54f Fix inefficient layout weight
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.
2013-08-03 10:42:47 -03:00

11 lines
No EOL
624 B
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">
<TextView android:id="@+id/download_tag" android:gravity="center_vertical" android:layout_width="0dp" android:layout_height="wrap_content"
android:layout_weight="1" android:textSize="19sp"></TextView>
<TextView android:id="@+id/download_descr" android:layout_marginLeft="3dp" android:gravity="center_vertical" android:layout_width="105dp"
android:layout_height="wrap_content" android:textSize="19sp" ></TextView>
</LinearLayout>