OsmAnd/OsmAnd/res/layout/change_order_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

26 lines
No EOL
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="2dip"
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:weightSum="1" android:background="@color/color_white">
<ImageButton android:src="@drawable/av_download" android:id="@+id/down" android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="@string/layer_poi"
android:textSize="18sp"
android:textColor="@color/color_black" android:layout_weight="1"/>
<ImageButton android:src="@drawable/av_upload" android:id="@+id/up"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>