1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /* 4 ** 5 ** Copyright 2011, The Android Open Source Project 6 ** 7 ** Licensed under the Apache License, Version 2.0 (the "License"); 8 ** you may not use this file except in compliance with the License. 9 ** You may obtain a copy of the License at 10 ** 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** 13 ** Unless required by applicable law or agreed to in writing, software 14 ** distributed under the License is distributed on an "AS IS" BASIS, 15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 ** See the License for the specific language governing permissions and 17 ** limitations under the License. 18 */ 19 --> 20 21 <merge 22 xmlns:android="http://schemas.android.com/apk/res/android"> 23 <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings. 24 We just need to ignore the system's audio and haptic feedback settings. --> 25 <LinearLayout 26 android:id="@+id/suggestions_strip" 27 android:orientation="horizontal" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:layout_marginLeft="@dimen/config_suggestions_strip_horizontal_margin" 31 android:layout_marginRight="@dimen/config_suggestions_strip_horizontal_margin" 32 android:hapticFeedbackEnabled="false" 33 android:soundEffectsEnabled="false" /> 34 <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings. 35 We just need to ignore the system's audio and haptic feedback settings. --> 36 <LinearLayout 37 android:id="@+id/add_to_dictionary_strip" 38 android:orientation="horizontal" 39 android:layout_width="match_parent" 40 android:layout_height="match_parent" 41 android:layout_marginLeft="@dimen/config_suggestions_strip_horizontal_margin" 42 android:layout_marginRight="@dimen/config_suggestions_strip_horizontal_margin" 43 android:hapticFeedbackEnabled="false" 44 android:soundEffectsEnabled="false"> 45 <TextView 46 android:id="@+id/word_to_save" 47 android:layout_width="match_parent" 48 android:layout_height="match_parent" 49 style="?attr/suggestionWordStyle" /> 50 <include 51 android:id="@+id/word_to_save_divider" 52 layout="@layout/suggestion_divider" /> 53 <TextView 54 android:id="@+id/hint_add_to_dictionary" 55 android:layout_width="match_parent" 56 android:layout_height="match_parent" 57 android:gravity="center_vertical|start" 58 style="?attr/suggestionWordStyle" /> 59 </LinearLayout> 60 <!-- Provide audio and haptic feedback by ourselves based on the keyboard settings. 61 We just need to ignore the system's audio and haptic feedback settings. --> 62 <LinearLayout 63 android:id="@+id/important_notice_strip" 64 android:orientation="horizontal" 65 android:layout_width="match_parent" 66 android:layout_height="match_parent" 67 android:layout_marginLeft="@dimen/config_suggestions_strip_horizontal_margin" 68 android:layout_marginRight="@dimen/config_suggestions_strip_horizontal_margin" 69 android:hapticFeedbackEnabled="false" 70 android:soundEffectsEnabled="false" > 71 <TextView 72 android:id="@+id/important_notice_title" 73 android:layout_width="match_parent" 74 android:layout_height="match_parent" 75 android:padding="6sp" 76 android:textSize="16sp" 77 style="?attr/suggestionWordStyle" /> 78 </LinearLayout> 79 <ImageButton 80 android:id="@+id/suggestions_strip_voice_key" 81 android:layout_width="@dimen/config_suggestions_strip_edge_key_width" 82 android:layout_height="fill_parent" 83 android:layout_alignParentEnd="true" 84 android:layout_alignParentRight="true" 85 android:layout_centerVertical="true" 86 android:contentDescription="@string/spoken_description_mic" 87 style="?attr/suggestionWordStyle" /> 88 </merge> 89