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.
13 lines
866 B
XML
13 lines
866 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">
|
|
|
|
<ImageView android:id="@+id/direction" android:layout_width="48dp" android:layout_height="48dp"/>
|
|
<TextView android:text="" android:id="@+id/distance" android:layout_marginLeft ="5dp" android:textSize="23sp"
|
|
android:layout_width="70dp" android:layout_height="wrap_content"></TextView>
|
|
<TextView android:text="" android:id="@+id/description" android:layout_weight="1" android:textSize="23sp"
|
|
android:layout_width="0dp" android:layout_height="wrap_content"></TextView>
|
|
<TextView android:text="" android:id="@+id/time" android:layout_marginLeft ="5dp"
|
|
android:layout_width="65dp" android:layout_height="wrap_content" android:textSize="23sp"></TextView>
|
|
|
|
</LinearLayout>
|