source: internals/2016/screencastmultiplayergame_control/branches/MotionDetector3 works well for vertical motion, has detector sensitivity calibration, score calculation is bad/motiondetectorplugin/build/intermediates/exploded-aar/com.android.support/appcompat-v7/24.1.1/res/layout/abc_search_view.xml @ 16580

Last change on this file since 16580 was 16580, checked in by jesteves, 3 years ago

Added Motion Detector version that works for vertical motion (phone horizontal to the floor). The calculation of the score for each action is not good.

File size: 6.0 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright (C) 2014 The Android Open Source Project
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *      http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19-->
20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21        android:id="@+id/search_bar"
22        android:layout_width="match_parent"
23        android:layout_height="match_parent"
24        android:orientation="horizontal">
25
26    <!-- This is actually used for the badge icon *or* the badge label (or neither) -->
27    <TextView
28            android:id="@+id/search_badge"
29            android:layout_width="wrap_content"
30            android:layout_height="match_parent"
31            android:gravity="center_vertical"
32            android:layout_marginBottom="2dip"
33            android:drawablePadding="0dip"
34            android:textAppearance="?android:attr/textAppearanceMedium"
35            android:textColor="?android:attr/textColorPrimary"
36            android:visibility="gone" />
37
38    <ImageView
39            android:id="@+id/search_button"
40            style="?attr/actionButtonStyle"
41            android:layout_width="wrap_content"
42            android:layout_height="match_parent"
43            android:layout_gravity="center_vertical"
44            android:focusable="true"
45            android:contentDescription="@string/abc_searchview_description_search" />
46
47    <LinearLayout
48            android:id="@+id/search_edit_frame"
49            android:layout_width="wrap_content"
50            android:layout_height="match_parent"
51            android:layout_weight="1"
52            android:layout_marginLeft="8dip"
53            android:layout_marginRight="8dip"
54            android:orientation="horizontal"
55            android:layoutDirection="locale">
56
57        <ImageView
58                android:id="@+id/search_mag_icon"
59                android:layout_width="@dimen/abc_dropdownitem_icon_width"
60                android:layout_height="wrap_content"
61                android:scaleType="centerInside"
62                android:layout_gravity="center_vertical"
63                android:visibility="gone"
64                style="@style/RtlOverlay.Widget.AppCompat.SearchView.MagIcon" />
65
66        <!-- Inner layout contains the app icon, button(s) and EditText -->
67        <LinearLayout
68                android:id="@+id/search_plate"
69                android:layout_width="wrap_content"
70                android:layout_height="match_parent"
71                android:layout_weight="1"
72                android:layout_gravity="center_vertical"
73                android:orientation="horizontal">
74
75            <view class="android.support.v7.widget.SearchView$SearchAutoComplete"
76                  android:id="@+id/search_src_text"
77                  android:layout_height="36dip"
78                  android:layout_width="0dp"
79                  android:layout_weight="1"
80                  android:layout_gravity="center_vertical"
81                  android:paddingLeft="@dimen/abc_dropdownitem_text_padding_left"
82                  android:paddingRight="@dimen/abc_dropdownitem_text_padding_right"
83                  android:singleLine="true"
84                  android:ellipsize="end"
85                  android:background="@null"
86                  android:inputType="text|textAutoComplete|textNoSuggestions"
87                  android:imeOptions="actionSearch"
88                  android:dropDownHeight="wrap_content"
89                  android:dropDownAnchor="@id/search_edit_frame"
90                  android:dropDownVerticalOffset="0dip"
91                  android:dropDownHorizontalOffset="0dip" />
92
93            <ImageView
94                    android:id="@+id/search_close_btn"
95                    android:layout_width="wrap_content"
96                    android:layout_height="match_parent"
97                    android:paddingLeft="8dip"
98                    android:paddingRight="8dip"
99                    android:layout_gravity="center_vertical"
100                    android:background="?attr/selectableItemBackgroundBorderless"
101                    android:focusable="true"
102                    android:contentDescription="@string/abc_searchview_description_clear" />
103
104        </LinearLayout>
105
106        <LinearLayout
107                android:id="@+id/submit_area"
108                android:orientation="horizontal"
109                android:layout_width="wrap_content"
110                android:layout_height="match_parent">
111
112            <ImageView
113                    android:id="@+id/search_go_btn"
114                    android:layout_width="wrap_content"
115                    android:layout_height="match_parent"
116                    android:layout_gravity="center_vertical"
117                    android:paddingLeft="16dip"
118                    android:paddingRight="16dip"
119                    android:background="?attr/selectableItemBackgroundBorderless"
120                    android:visibility="gone"
121                    android:focusable="true"
122                    android:contentDescription="@string/abc_searchview_description_submit" />
123
124            <ImageView
125                    android:id="@+id/search_voice_btn"
126                    android:layout_width="wrap_content"
127                    android:layout_height="match_parent"
128                    android:layout_gravity="center_vertical"
129                    android:paddingLeft="16dip"
130                    android:paddingRight="16dip"
131                    android:background="?attr/selectableItemBackgroundBorderless"
132                    android:visibility="gone"
133                    android:focusable="true"
134                    android:contentDescription="@string/abc_searchview_description_voice" />
135        </LinearLayout>
136    </LinearLayout>
137</LinearLayout>
Note: See TracBrowser for help on using the repository browser.