diff options
author | Jim Miller <jaggies@google.com> | 2012-04-06 17:10:57 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2012-04-24 17:25:46 -0700 |
commit | e898ac59db04d8ab0762180ca8ec7cea1347aa09 (patch) | |
tree | 90423586db4f60f5771845b70b336336dc06228d /packages/SystemUI/res/layout-land/status_bar_search_panel.xml | |
parent | bdb1c4067c2453672652730d12466dc17ff4a120 (diff) | |
download | frameworks_base-e898ac59db04d8ab0762180ca8ec7cea1347aa09.zip frameworks_base-e898ac59db04d8ab0762180ca8ec7cea1347aa09.tar.gz frameworks_base-e898ac59db04d8ab0762180ca8ec7cea1347aa09.tar.bz2 |
Fix 6299832: Add search target swipe action to navigation bar on phones
This adds a feature to swipe upward on the navigation bar to invoke
voice search on phones.
Change-Id: I462076fd43b1c66c5bf624f00b297c6d3414a19a
Diffstat (limited to 'packages/SystemUI/res/layout-land/status_bar_search_panel.xml')
-rw-r--r-- | packages/SystemUI/res/layout-land/status_bar_search_panel.xml | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/packages/SystemUI/res/layout-land/status_bar_search_panel.xml b/packages/SystemUI/res/layout-land/status_bar_search_panel.xml new file mode 100644 index 0000000..2adee33 --- /dev/null +++ b/packages/SystemUI/res/layout-land/status_bar_search_panel.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +/* apps/common/assets/default/default/skins/StatusBar.xml +** +** Copyright 2012, The Android Open Source Project +** +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at +** +** http://www.apache.org/licenses/LICENSE-2.0 +** +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and +** limitations under the License. +*/ +--> + +<com.android.systemui.SearchPanelView + xmlns:prvandroid="http://schemas.android.com/apk/prv/res/android" + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/search_panel_container" + android:layout_height="match_parent" + android:layout_width="match_parent" + android:paddingBottom="0dip"> + + <RelativeLayout + android:id="@+id/search_bg_protect" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginBottom="0dip"> + + <RelativeLayout + android:id="@+id/search_panel_container" + android:layout_width="230dip" + android:layout_height="match_parent" + android:layout_alignParentRight="true"> + + <com.android.internal.widget.multiwaveview.MultiWaveView + android:id="@+id/multi_wave_view" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignParentBottom="true" + android:background="@drawable/navbar_search_bg_scrim" + + prvandroid:targetDrawables="@array/navbar_search_targets" + prvandroid:targetDescriptions="@array/navbar_search_target_descriptions" + prvandroid:directionDescriptions="@array/navbar_search_direction_descriptions" + prvandroid:handleDrawable="@drawable/navbar_search_handle" + prvandroid:waveDrawable="@drawable/navbar_search_outerring" + prvandroid:outerRadius="@dimen/navbar_search_target_placement_radius" + prvandroid:snapMargin="@dimen/navbar_search_snap_margin" + prvandroid:hitRadius="@dimen/navbar_search_hit_radius" + prvandroid:verticalOffset="0dip" + prvandroid:horizontalOffset="60dip" + prvandroid:feedbackCount="0" + prvandroid:vibrationDuration="0" + prvandroid:alwaysTrackFinger="true"/> + + </RelativeLayout> + + </RelativeLayout> + +</com.android.systemui.SearchPanelView> |