Skip to content

Commit 5f843bf

Browse files
committed
fix style of filter tab
1 parent 6267e48 commit 5f843bf

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

app/src/main/res/layout/filter_chip_view.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
android:orientation="horizontal"
55
android:layout_gravity="center_vertical"
66
xmlns:android="http://schemas.android.com/apk/res/android">
7-
7+
88
<TextView
99
android:layout_width="wrap_content"
1010
android:layout_height="wrap_content"
1111
android:layout_gravity="center_vertical"
1212
android:paddingStart="15dp"
13-
android:text="@string/place_state"/>
13+
android:text="@string/place_state"
14+
android:textColor="@color/white"/>
1415

1516
<com.google.android.material.chip.ChipGroup
1617
android:id="@+id/choice_chip_group"

app/src/main/res/layout/filter_search_view_layout.xml

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@
99
android:layout_height="wrap_content"
1010
android:layout_gravity="center_vertical"
1111
android:paddingStart="15dp"
12-
android:text="Place type:"/>
12+
android:text="@string/place_type"
13+
android:textColor="@color/white"/>
1314

1415
<SearchView
1516
android:id="@+id/search_view"
1617
android:layout_width="wrap_content"
1718
android:layout_height="match_parent"
18-
>
19+
android:tint="@color/white"
20+
android:queryHint="@string/nearby_search_hint"
21+
android:searchIcon="@drawable/ic_search_white_24dp">
1922
</SearchView>
2023

2124
</LinearLayout>

app/src/main/res/layout/fragment_nearby_parent.xml

+9-13
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,15 @@
1111
android:background="@color/status_bar_blue"
1212
android:id="@+id/map_layout">
1313

14-
<LinearLayout
15-
android:orientation="vertical" android:layout_width="match_parent"
16-
android:layout_height="match_parent">
14+
<include
15+
layout="@layout/nearby_filter_all_items"
16+
android:id="@+id/nearby_filter"/>
1717

18-
<include layout="@layout/nearby_filter_all_items" />
19-
20-
<FrameLayout
21-
android:id="@+id/container"
22-
android:layout_width="match_parent"
23-
android:layout_height="match_parent" />
24-
25-
</LinearLayout>
18+
<FrameLayout
19+
android:id="@+id/container"
20+
android:layout_width="match_parent"
21+
android:layout_height="match_parent"
22+
android:layout_below="@id/nearby_filter"/>
2623

2724
<View
2825
android:id="@+id/transparentView"
@@ -40,9 +37,9 @@
4037
android:id="@+id/fab_recenter"
4138
android:layout_width="wrap_content"
4239
android:layout_height="wrap_content"
43-
android:layout_below="@+id/toolbar"
4440
android:layout_alignParentEnd="true"
4541
android:layout_alignParentRight="true"
42+
android:layout_below="@id/nearby_filter"
4643
android:clickable="true"
4744
android:visibility="visible"
4845
app:backgroundTint="@color/main_background_light"
@@ -52,7 +49,6 @@
5249
app:srcCompat="@drawable/ic_my_location_black_24dp"
5350
app:useCompatPadding="true" />
5451

55-
5652
</RelativeLayout>
5753

5854
<include layout="@layout/bottom_sheet_nearby" />

app/src/main/res/values/strings.xml

+2
Original file line numberDiff line numberDiff line change
@@ -584,4 +584,6 @@ Upload your first media by tapping on the add button.</string>
584584
<string name="place_state">Place state:</string>
585585
<string name="place_state_exists">Exists:</string>
586586
<string name="place_state_needs_photo">Needs photo:</string>
587+
<string name="place_type">Place type:</string>
588+
<string name="nearby_search_hint">Bridge, museum, hotel etc.</string>
587589
</resources>

0 commit comments

Comments
 (0)