forked from organicmaps/organicmaps
[android] Updated icons for rooms/guests picker ui
This commit is contained in:
parent
1157bf5fa1
commit
c9abcc465c
8 changed files with 69 additions and 7 deletions
10
android/res/drawable/ic_child.xml
Normal file
10
android/res/drawable/ic_child.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M15,2C14.484,2 13.688,2.129 12.781,2.688C12.375,2.938 11.973,3.305 11.656,3.781C11.453,3.629 11.242,3.504 11.031,3.406C10.238,3.035 9.484,3 9,3V5C9.301,5 9.754,5.031 10.125,5.188C6.754,5.906 4.129,8.539 3.656,11.938C2.73,12.305 2,13.035 2,14.094C2,15.074 2.684,15.824 3.562,16.219C3.691,16.691 3.992,17.723 4.969,18.938C6.207,20.477 8.473,22 12,22C15.527,22 17.793,20.477 19.031,18.938C20.008,17.723 20.309,16.691 20.438,16.219C21.316,15.824 22,15.074 22,14.094C22,13.035 21.27,12.305 20.344,11.938C19.84,8.309 16.883,5.582 13.188,5.094C13.34,4.766 13.566,4.547 13.844,4.375C14.312,4.086 15.016,4 15,4V2ZM12,7C15.535,7 18.328,9.406 18.5,12.656L18.562,13.594H19.5C19.715,13.594 20,13.879 20,14.094C20,14.395 19.809,14.594 19.594,14.594H18.781L18.625,15.406C18.625,15.406 18.402,16.527 17.469,17.688C16.535,18.848 14.973,20 12,20C9.027,20 7.465,18.848 6.531,17.688C5.598,16.527 5.375,15.406 5.375,15.406L5.219,14.594H4.406C4.191,14.594 4,14.395 4,14.094C4,13.879 4.285,13.594 4.5,13.594H5.438L5.5,12.656C5.672,9.406 8.465,7 12,7ZM9.5,11C8.672,11 8,11.672 8,12.5C8,13.328 8.672,14 9.5,14C10.328,14 11,13.328 11,12.5C11,11.672 10.328,11 9.5,11ZM14.5,11C13.672,11 13,11.672 13,12.5C13,13.328 13.672,14 14.5,14C15.328,14 16,13.328 16,12.5C16,11.672 15.328,11 14.5,11ZM9.156,15.719L7.656,17.062C8.742,18.27 10.312,19 12,19C13.688,19 15.258,18.27 16.344,17.062L14.844,15.719C14.133,16.512 13.113,17 12,17C10.887,17 9.867,16.512 9.156,15.719Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
9
android/res/drawable/ic_counter_minus.xml
Normal file
9
android/res/drawable/ic_counter_minus.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M7,11V13H17V11H7ZM12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
9
android/res/drawable/ic_counter_plus.xml
Normal file
9
android/res/drawable/ic_counter_plus.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M13,7H11V11H7V13H11V17H13V13H17V11H13V7ZM12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
9
android/res/drawable/ic_infant.xml
Normal file
9
android/res/drawable/ic_infant.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M8.3183,19.4602C7.3985,20.3799 5.9352,20.3799 5.0154,19.4602C4.0956,18.5404 4.0956,17.0771 5.0154,16.1573C5.9352,15.2375 7.3985,15.2375 8.3183,16.1573C9.2171,17.0771 9.2171,18.5613 8.3183,19.4602ZM16.9099,16.1573L8.3183,7.5657C7.7748,7.0222 6.8759,7.0222 6.3324,7.5657C5.7889,8.1092 5.7889,9.0081 6.3324,9.5516L9.9697,13.1889L9.2381,13.9206C7.4194,12.7081 4.9527,12.9172 3.364,14.5059C1.5453,16.3245 1.5453,19.2929 3.364,21.1116C5.1827,22.9302 8.151,22.9302 9.9697,21.1116C11.5793,19.502 11.7674,17.0353 10.555,15.2375L11.2866,14.5059L14.924,18.1432C15.4675,18.6867 16.3663,18.6867 16.9099,18.1432C17.4534,17.5997 17.4534,16.7008 16.9099,16.1573ZM20.7771,3.2386C19.1257,1.5871 16.4709,1.5871 14.8194,3.2386C12.6663,5.3917 14.4641,6.5623 12.7708,8.2556C12.729,8.3183 11.8092,9.2171 11.8092,9.2171C11.642,9.3844 11.6211,9.7188 11.7465,9.9488L14.046,12.2482C14.255,12.3946 14.5895,12.3737 14.7776,12.1855C14.7776,12.1855 15.6974,11.2657 15.7601,11.203C17.4534,9.5098 18.624,11.3076 20.7771,9.1544C22.4076,7.5448 22.4076,4.8691 20.7771,3.2386Z"
|
||||
android:fillColor="#ffffff"/>
|
||||
</vector>
|
10
android/res/drawable/ic_people.xml
Normal file
10
android/res/drawable/ic_people.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M7.5,5C5.602,5 4,6.602 4,8.5C4,10.398 5.602,12 7.5,12C9.398,12 11,10.398 11,8.5C11,6.602 9.398,5 7.5,5ZM16.5,5C14.566,5 13,6.566 13,8.5C13,10.434 14.566,12 16.5,12C18.434,12 20,10.434 20,8.5C20,6.566 18.434,5 16.5,5ZM7.5,14C2.602,14 1,18 1,18V20H14V18C14,18 12.398,14 7.5,14ZM16.5,14C15,14 13.805,14.406 12.906,14.906C14.305,16.105 14.898,17.492 15,17.594L15.094,17.812V20H23.094V18C22.992,18 21.398,14 16.5,14Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
10
android/res/drawable/ic_room.xml
Normal file
10
android/res/drawable/ic_room.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M3,6C2.449,6 2,6.449 2,7V19H4V18C4,17.449 4.449,17 5,17H19C19.551,17 20,17.449 20,18V19H22V14H4V7C4,6.449 3.551,6 3,6ZM6,9C5.449,9 5,9.449 5,10V13H9V10C9,9.449 8.551,9 8,9H6ZM10,9V13H22V11C22,9.895 21.105,9 20,9H10Z"
|
||||
android:fillColor="#ffffff"
|
||||
android:fillType="evenOdd"/>
|
||||
</vector>
|
|
@ -33,7 +33,7 @@
|
|||
android:id="@+id/rooms"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@android:drawable/star_on"
|
||||
android:src="@drawable/ic_room"
|
||||
app:maxValue="30"
|
||||
app:minValue="1"
|
||||
app:title="@string/guests_picker_rooms" />
|
||||
|
@ -41,7 +41,7 @@
|
|||
android:id="@+id/adults"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@android:drawable/star_on"
|
||||
android:src="@drawable/ic_people"
|
||||
app:maxValue="30"
|
||||
app:minValue="1"
|
||||
app:title="@string/guests_picker_adults" />
|
||||
|
@ -49,7 +49,7 @@
|
|||
android:id="@+id/children"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@android:drawable/star_on"
|
||||
android:src="@drawable/ic_child"
|
||||
app:maxValue="10"
|
||||
app:minValue="0"
|
||||
app:subtitle="@string/guests_picker_children_subtitle"
|
||||
|
@ -58,7 +58,7 @@
|
|||
android:id="@+id/infants"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@android:drawable/star_on"
|
||||
android:src="@drawable/ic_infant"
|
||||
app:maxValue="10"
|
||||
app:minValue="0"
|
||||
app:subtitle="@string/guests_picker_infants_subtitle"
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
tools:src="@drawable/ic_dropdown" />
|
||||
android:tint="?iconTint"
|
||||
tools:src="@drawable/ic_people" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -49,7 +50,9 @@
|
|||
android:id="@+id/minus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:src="@drawable/ic_search" />
|
||||
android:background="@android:color/transparent"
|
||||
android:src="@drawable/ic_counter_minus"
|
||||
android:tint="?iconTint" />
|
||||
<TextView
|
||||
android:id="@+id/counter"
|
||||
android:layout_width="0dp"
|
||||
|
@ -62,7 +65,9 @@
|
|||
android:id="@+id/plus"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
tools:src="@drawable/ic_search" />
|
||||
android:background="@android:color/transparent"
|
||||
android:src="@drawable/ic_counter_plus"
|
||||
android:tint="?iconTint" />
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
|
Loading…
Add table
Reference in a new issue