OsmAnd/OsmAnd/res/layout/searchpoi.xml

73 lines
2.7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2015-04-07 23:05:52 +02:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
2015-04-07 23:05:52 +02:00
android:orientation="vertical" >
<LinearLayout
android:id="@+id/SearchFilterLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
tools:visibility="visible"
2015-04-08 00:21:31 +02:00
android:visibility="gone"
2015-04-07 23:05:52 +02:00
android:orientation="horizontal" >
2015-04-07 23:05:52 +02:00
<ImageView
android:id="@+id/search_icon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
android:layout_gravity="center_vertical"
android:layout_marginRight="8dp"
android:src="@android:drawable/ic_search_category_default" />
<!-- to not gain focus everytime -->
<LinearLayout
android:layout_width="0px"
android:layout_height="0px"
android:focusable="true"
android:focusableInTouchMode="true" />
<EditText
android:id="@+id/searchEditText"
2015-04-07 23:05:52 +02:00
android:layout_width="0dp"
android:layout_height="wrap_content"
2015-04-07 23:05:52 +02:00
android:layout_gravity="bottom"
android:layout_marginRight="@dimen/list_content_padding"
android:layout_weight="1"
android:maxLines="1"
android:singleLine="true"
android:lines="1"
android:nextFocusLeft="@id/searchEditText"
android:nextFocusUp="@id/searchEditText"
2015-04-07 23:05:52 +02:00
android:textColor="?android:textColorPrimary"
android:imeOptions="actionSearch"
2015-04-07 23:05:52 +02:00
tools:text="@string/lorem_ipsum" >
</EditText>
<ImageView
android:id="@+id/options"
android:contentDescription="@string/shared_string_more"
2015-04-07 23:05:52 +02:00
android:layout_width="@dimen/list_item_height"
android:layout_height="@dimen/list_item_height"
android:layout_gravity="center_vertical"
android:background="?attr/dashboard_button"
android:scaleType="center"
2015-04-24 23:20:54 +02:00
android:src="@drawable/ic_overflow_menu_white" />
</LinearLayout>
<ListView
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="0dp"
2015-04-07 23:05:52 +02:00
android:layout_weight="1" />
<net.osmand.plus.activities.search.toolbar.SplitToolbar
2015-04-08 00:21:31 +02:00
android:id="@+id/poiSplitbar"
2015-04-07 23:05:52 +02:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="?attr/bottomToolBarColor"
android:orientation="horizontal" />
</LinearLayout>