Skip to content

Commit d0beadd

Browse files
committed
Add filter items to nearby parent fragment xml
1 parent 1f3c8c8 commit d0beadd

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<LinearLayout android:layout_width="wrap_content"
2+
android:layout_height="wrap_content"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
android:orientation="horizontal"
5+
android:layout_gravity="center_vertical"
6+
xmlns:android="http://schemas.android.com/apk/res/android">
7+
<TextView
8+
android:layout_width="wrap_content"
9+
android:layout_height="wrap_content"
10+
android:layout_gravity="center_vertical"
11+
android:paddingStart="15dp"
12+
android:text="Place state:"/>
13+
14+
<com.google.android.material.chip.ChipGroup
15+
android:id="@+id/choice_chip_group"
16+
android:layout_width="match_parent"
17+
android:layout_height="wrap_content"
18+
android:layout_marginStart="15dp"
19+
android:theme="@style/Theme.MaterialComponents.Light"
20+
app:singleSelection="false"
21+
>
22+
23+
<com.google.android.material.chip.Chip
24+
android:id="@+id/choice_chip_exists"
25+
style="@style/Widget.MaterialComponents.Chip.Choice"
26+
android:layout_width="wrap_content"
27+
android:layout_height="wrap_content"
28+
android:text="Exists"/>
29+
30+
<com.google.android.material.chip.Chip
31+
android:id="@+id/choice_chip_needs_photo"
32+
style="@style/Widget.MaterialComponents.Chip.Choice"
33+
android:layout_width="wrap_content"
34+
android:layout_height="wrap_content"
35+
android:text="Needs photo"/>
36+
</com.google.android.material.chip.ChipGroup>
37+
38+
</LinearLayout>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<LinearLayout android:layout_width="wrap_content"
2+
android:layout_height="wrap_content"
3+
android:id="@+id/search_view_layout"
4+
android:paddingVertical="15dp"
5+
xmlns:android="http://schemas.android.com/apk/res/android">
6+
7+
<TextView
8+
android:layout_width="wrap_content"
9+
android:layout_height="wrap_content"
10+
android:layout_gravity="center_vertical"
11+
android:paddingStart="15dp"
12+
android:text="Place type:"/>
13+
14+
<SearchView
15+
android:id="@+id/search_view"
16+
android:layout_width="wrap_content"
17+
android:layout_height="match_parent"
18+
>
19+
</SearchView>
20+
21+
</LinearLayout>

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@
55
android:layout_width="match_parent"
66
android:layout_height="match_parent">
77

8+
<LinearLayout
9+
android:layout_width="match_parent"
10+
android:layout_height="wrap_content"
11+
android:background="@android:color/transparent"
12+
android:orientation="vertical"
13+
>
14+
15+
<include
16+
android:id="@+id/chip_view"
17+
layout="@layout/filter_chip_view"
18+
android:background="@color/deleteRed"
19+
/>
20+
21+
<include android:id="@+id/search_view_layout" layout="@layout/filter_search_view_layout" />
22+
23+
<RelativeLayout
24+
android:layout_width="match_parent"
25+
android:layout_height="match_parent"
26+
android:layout_below="@id/search_view_layout"
27+
android:background="@color/status_bar_blue">
28+
</RelativeLayout>
29+
30+
<include layout="@layout/nearby_filter_list" />
31+
32+
</LinearLayout>
33+
834
<RelativeLayout
935
android:layout_width="match_parent"
1036
android:layout_height="match_parent"

0 commit comments

Comments
 (0)