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

58 lines
No EOL
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- This file is at /res/layout/list.xml -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RootLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<ProgressBar
android:id="@+id/ProgressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</ProgressBar>
<Button
android:id="@+id/SearchTransportLevelButton"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" >
</Button>
<TextView
android:id="@+id/SearchAreaText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="" />
</LinearLayout>
<RelativeLayout
android:id="@+id/RelativeLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center" >
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_below="@+id/listView"
style="@style/OsmandListView">
</ListView>
<ListView
android:id="@+id/listView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
style="@style/OsmandListView" >
</ListView>
</RelativeLayout>
</LinearLayout>