eac312e5bd
!!! This makes address search finally more usable on e.g. in-car head units !!! Additionally added minor layout changes to squeeze the street list in landscape mode (less line separator height and margin).
65 lines
No EOL
2.3 KiB
XML
65 lines
No EOL
2.3 KiB
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"
|
|
android:windowSoftInputMode="adjustResize"
|
|
android:isScrollContainer="true"
|
|
android:imeOptions="flagNoExtractUi" >
|
|
<!--
|
|
ppenguin 2016-03-07: apparently adjustResize and flagNoExtractUi have no effect here or below,
|
|
so SearchByNameAbstractActivity.java needed to be changed by setting the imeOptions in the code to always include
|
|
the necessary flag
|
|
-->
|
|
|
|
<LinearLayout
|
|
android:id="@+id/LinearLayout"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="3dp"
|
|
android:layout_marginRight="3dp"
|
|
android:layout_marginBottom="0dp"
|
|
android:layout_marginTop="0dp" >
|
|
|
|
<ProgressBar
|
|
android:id="@+id/ProgressBar"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="-5dp" />
|
|
|
|
<EditText
|
|
android:id="@+id/SearchText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:inputType="textNoSuggestions"
|
|
android:lines="1"
|
|
android:layout_weight="1"
|
|
android:layout_marginBottom="-5dp"
|
|
android:imeOptions="flagNoExtractUi" />
|
|
|
|
<Button
|
|
android:id="@+id/ResetButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0"
|
|
android:layout_marginLeft="0dp"
|
|
android:layout_marginRight="0dp"
|
|
android:layout_marginBottom="-5dp"
|
|
android:layout_marginTop="0dp"
|
|
android:padding="0dp"
|
|
android:text="@string/shared_string_clear" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ListView
|
|
android:id="@android:id/list"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:dividerHeight="1dp"
|
|
android:layout_marginLeft="3dp"
|
|
android:layout_marginRight="3dp"
|
|
android:layout_marginTop="0dp" />
|
|
|
|
</LinearLayout> |