Added background
This commit is contained in:
parent
b962b6c859
commit
51840ae833
5 changed files with 93 additions and 88 deletions
BIN
OsmAnd/res/drawable-hdpi/bg_cardui.9.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/bg_cardui.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
OsmAnd/res/drawable-mdpi/bg_cardui.9.png
Normal file
BIN
OsmAnd/res/drawable-mdpi/bg_cardui.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
OsmAnd/res/drawable-xhdpi/bg_cardui.9.png
Normal file
BIN
OsmAnd/res/drawable-xhdpi/bg_cardui.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
OsmAnd/res/drawable-xxhdpi/bg_cardui.9.png
Normal file
BIN
OsmAnd/res/drawable-xxhdpi/bg_cardui.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
|
@ -1,18 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:padding="8dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/background">
|
||||
<LinearLayout android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:padding="8dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/background">
|
||||
|
||||
<LinearLayout android:id="@+id/search"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/color_white"
|
||||
android:layout_marginBottom="8dp">
|
||||
<LinearLayout android:id="@+id/search"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_cardui"
|
||||
android:layout_marginBottom="8dp">
|
||||
<TextView android:text="@string/search_for"
|
||||
android:layout_width="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
|
@ -20,87 +21,91 @@
|
|||
android:layout_marginLeft="10dp"
|
||||
android:textSize="16sp"
|
||||
android:layout_height="30dp"/>
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:background="@color/group_background"
|
||||
android:layout_height="80dp">
|
||||
<Button android:id="@+id/poi"
|
||||
android:text="@string/poi"
|
||||
android:drawableTop="@drawable/ic_action_info_light"
|
||||
android:layout_marginRight="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/address"
|
||||
android:text="@string/address"
|
||||
android:layout_marginRight="1dp"
|
||||
android:layout_marginLeft="1dp"
|
||||
android:drawableTop="@drawable/ic_action_home_light"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/coord"
|
||||
android:text="@string/coordinates"
|
||||
android:layout_marginLeft="1dp"
|
||||
android:drawableTop="@drawable/ic_action_marker_light"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:background="@color/group_background"
|
||||
android:layout_height="80dp">
|
||||
<Button android:id="@+id/poi"
|
||||
android:text="@string/poi"
|
||||
android:drawableTop="@drawable/ic_action_info_light"
|
||||
android:layout_marginRight="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/address"
|
||||
android:text="@string/address"
|
||||
android:layout_marginRight="1dp"
|
||||
android:layout_marginLeft="1dp"
|
||||
android:drawableTop="@drawable/ic_action_home_light"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/coord"
|
||||
android:text="@string/coordinates"
|
||||
android:layout_marginLeft="1dp"
|
||||
android:drawableTop="@drawable/ic_action_marker_light"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:background="@color/group_background"
|
||||
android:layout_height="80dp">
|
||||
<Button android:id="@+id/fav"
|
||||
android:text="@string/my_favorites"
|
||||
android:drawableTop="@drawable/ic_action_fav_light"
|
||||
android:layout_marginRight="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/history"
|
||||
android:text="@string/history"
|
||||
android:drawableTop="@drawable/ic_action_fav_light"
|
||||
android:layout_marginRight="1dp"
|
||||
android:layout_marginLeft="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/transport"
|
||||
android:text="@string/rendering_category_transport"
|
||||
android:drawableTop="@drawable/ic_action_bus_light"
|
||||
android:layout_marginLeft="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:background="@color/group_background"
|
||||
android:layout_height="80dp">
|
||||
<Button android:id="@+id/fav"
|
||||
android:text="@string/my_favorites"
|
||||
android:drawableTop="@drawable/ic_action_fav_light"
|
||||
android:layout_marginRight="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/history"
|
||||
android:text="@string/history"
|
||||
android:drawableTop="@drawable/ic_action_fav_light"
|
||||
android:layout_marginRight="1dp"
|
||||
android:layout_marginLeft="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
<Button android:id="@+id/transport"
|
||||
android:text="@string/rendering_category_transport"
|
||||
android:drawableTop="@drawable/ic_action_bus_light"
|
||||
android:layout_marginLeft="1dp"
|
||||
style="@style/DashboardSearchButton"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:orientation="vertical"
|
||||
android:background="@color/color_white"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
<LinearLayout android:orientation="vertical"
|
||||
android:background="@drawable/bg_cardui"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView android:text="@string/show_map"
|
||||
style="@style/DashboardSubHeader"/>
|
||||
<Button android:id="@+id/show_map"
|
||||
android:text="@string/search_shown_on_map"
|
||||
style="@style/DashboardGeneralButton"/>
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView android:text="@string/map_Button"
|
||||
style="@style/DashboardSubHeader"/>
|
||||
<Button android:id="@+id/show_map"
|
||||
android:text="@string/show_map"
|
||||
style="@style/DashboardGeneralButton"/>
|
||||
</LinearLayout>
|
||||
|
||||
<net.osmand.plus.views.OsmAndMapSurfaceView
|
||||
android:id="@+id/MapView"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="160dp"
|
||||
android:contentDescription="@string/map_view"
|
||||
android:visibility="gone"/>
|
||||
</LinearLayout>
|
||||
|
||||
<net.osmand.plus.views.OsmAndMapSurfaceView
|
||||
android:id="@+id/MapView"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="160dp"
|
||||
android:contentDescription="@string/map_view"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
<LinearLayout android:background="@drawable/bg_cardui"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView android:text="@string/my_data_Button"
|
||||
style="@style/DashboardSubHeader"/>
|
||||
<Button android:id="@+id/show_all"
|
||||
android:text="@string/show_all"
|
||||
style="@style/DashboardGeneralButton"/>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout android:orientation="horizontal"
|
||||
android:background="@color/color_white"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView android:text="@string/my_data_Button"
|
||||
style="@style/DashboardSubHeader"/>
|
||||
<Button android:id="@+id/show_all"
|
||||
android:text="@string/show_all"
|
||||
style="@style/DashboardGeneralButton"/>
|
||||
</LinearLayout>
|
||||
<ListView android:id="@+id/list_favorites"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
|
||||
<ListView android:id="@+id/list_favorites"
|
||||
android:background="@color/color_white"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
Loading…
Reference in a new issue