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.
23 lines
No EOL
944 B
XML
23 lines
No EOL
944 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="fill_parent" android:orientation="vertical">
|
|
|
|
<TextView android:id="@+id/DescriptionText" android:layout_width="fill_parent" android:layout_height="wrap_content"
|
|
android:layout_marginLeft="10dp" android:layout_marginTop="3dp" android:layout_marginBottom="5dp"
|
|
android:layout_marginRight="10dp" android:text="@string/download_link_and_local_description"/>
|
|
|
|
<ExpandableListView
|
|
android:id="@android:id/list"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginLeft="0dp"
|
|
android:layout_marginRight="0dp"
|
|
android:layout_marginTop="0dp"
|
|
android:layout_weight="1"
|
|
android:groupIndicator="@android:color/transparent"
|
|
style="@style/OsmandListView" >
|
|
</ExpandableListView>
|
|
|
|
</LinearLayout> |