blob: 6a087a39baf61b3bb6259ecd148f405122c4c6a6 [file] [log] [blame]
Jason Monk8a452e92017-10-31 19:21:47 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2014 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent"
22 android:gravity="top"
23 android:orientation="vertical" >
24
25 <FrameLayout
26 android:id="@+id/search_bar_container"
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
29 android:background="#f2f2f2">
30 <android.support.v7.widget.CardView
31 android:id="@+id/search_bar"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:layout_margin="8dp"
35 app:cardCornerRadius="2dp"
36 app:cardBackgroundColor="?android:attr/colorBackground"
37 app:cardElevation="2dp">
Jason Monk698ad8c2017-11-10 10:31:19 -050038 <android.support.v7.widget.Toolbar
Jason Monk8a452e92017-10-31 19:21:47 -040039 android:id="@+id/search_toolbar"
40 android:layout_width="match_parent"
41 android:layout_height="48dp"
42 android:background="?android:attr/selectableItemBackground"
43 android:contentInsetStart="0dp"
44 android:contentInsetStartWithNavigation="0dp"
45 android:theme="?android:attr/actionBarTheme">
46 <SearchView
47 android:id="@+id/search_view"
48 android:layout_width="match_parent"
49 android:layout_height="match_parent"
50 android:iconifiedByDefault="false"
51 android:imeOptions="actionSearch|flagNoExtractUi"
52 android:queryHint="content://..."
53 android:searchIcon="@null"/>
Jason Monk698ad8c2017-11-10 10:31:19 -050054 </android.support.v7.widget.Toolbar>
Jason Monk8a452e92017-10-31 19:21:47 -040055 </android.support.v7.widget.CardView>
56 </FrameLayout>
57
58
59 <ScrollView
60 android:id="@+id/container"
61 android:layout_width="match_parent"
62 android:layout_height="0dp"
63 android:layout_weight="1" >
64
65 <FrameLayout
66 android:id="@+id/slice_preview"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_margin="8dp"
70 android:orientation="vertical"
71 android:background="?android:attr/colorBackground"
72 android:elevation="10dp" />
73 </ScrollView>
74
75</LinearLayout>