Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 3 | /* |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 4 | ** |
| 5 | ** Copyright 2009, The Android Open Source Project |
| 6 | ** |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 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 |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 10 | ** |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 11 | ** http://www.apache.org/licenses/LICENSE-2.0 |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 12 | ** |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 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 |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 17 | ** limitations under the License. |
| 18 | */ |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 19 | --> |
| 20 | <RelativeLayout |
| 21 | xmlns:android="http://schemas.android.com/apk/res/android" |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 22 | android:layout_height="wrap_content" |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 24 | android:background="@drawable/background_voice"> |
| 25 | <LinearLayout |
| 26 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 27 | android:id="@+id/popup_layout" |
| 28 | android:orientation="vertical" |
satok | 8cacb02 | 2011-01-24 17:38:49 +0900 | [diff] [blame] | 29 | android:layout_height="371dip" |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 30 | android:layout_width="500dip" |
| 31 | android:layout_centerInParent="true" |
| 32 | android:background="@drawable/vs_dialog_red"> |
| 33 | <TextView |
| 34 | android:id="@+id/text" |
| 35 | android:text="@string/voice_error" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:layout_width="wrap_content" |
| 38 | android:singleLine="true" |
| 39 | android:layout_marginTop="10dip" |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 40 | android:textSize="20sp" |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 41 | android:textColor="#ffffff" |
| 42 | android:layout_gravity="center" |
| 43 | android:visibility="invisible"/> |
| 44 | <RelativeLayout |
| 45 | android:layout_height="0dip" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_weight="1.0"> |
satok | 9807ab2 | 2011-03-16 14:57:08 -0700 | [diff] [blame] | 48 | <com.android.inputmethod.deprecated.voice.SoundIndicator |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 49 | android:id="@+id/sound_indicator" |
| 50 | android:src="@drawable/mic_full" |
| 51 | android:background="@drawable/mic_base" |
| 52 | android:adjustViewBounds="true" |
| 53 | android:layout_height="wrap_content" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_centerInParent="true" |
| 56 | android:visibility="gone"/> |
| 57 | <ImageView |
| 58 | android:id="@+id/image" |
| 59 | android:src="@drawable/mic_slash" |
| 60 | android:layout_height="wrap_content" |
| 61 | android:layout_width="wrap_content" |
| 62 | android:layout_centerInParent="true" |
| 63 | android:visibility="visible"/> |
| 64 | <ProgressBar |
| 65 | android:id="@+id/progress" |
| 66 | android:indeterminate="true" |
| 67 | android:indeterminateOnly="false" |
| 68 | android:layout_height="60dip" |
| 69 | android:layout_width="60dip" |
| 70 | android:layout_centerInParent="true" |
| 71 | android:visibility="gone"/> |
| 72 | </RelativeLayout> |
Luca Zanolin | 2c5ec3a | 2011-01-24 10:36:15 +0000 | [diff] [blame] | 73 | <!-- |
| 74 | The text is set by the code. We specify a random text (voice_error), so the |
| 75 | text view does not have a zero height. This is necessary to keep the slash |
| 76 | mic and the recording mic is the same position |
| 77 | --> |
| 78 | <TextView |
| 79 | android:id="@+id/language" |
| 80 | android:text="@string/voice_error" |
| 81 | android:layout_height="wrap_content" |
| 82 | android:layout_width="wrap_content" |
| 83 | android:singleLine="true" |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 84 | android:textSize="15sp" |
| 85 | android:layout_marginTop="3dip" |
Luca Zanolin | 2c5ec3a | 2011-01-24 10:36:15 +0000 | [diff] [blame] | 86 | android:layout_marginBottom="3dip" |
| 87 | android:layout_gravity="center" |
| 88 | android:textColor="#ffffff" |
| 89 | android:visibility="invisible"/> |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 90 | <Button |
| 91 | android:id="@+id/button" |
| 92 | android:layout_width="match_parent" |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 93 | android:layout_height="30dip" |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 94 | android:singleLine="true" |
| 95 | android:focusable="true" |
| 96 | android:text="@string/cancel" |
| 97 | android:layout_gravity="center_horizontal" |
| 98 | android:background="@drawable/btn_center" |
| 99 | android:textColor="#ffffff" |
satok | 015b21c | 2011-04-20 11:29:26 +0900 | [diff] [blame] | 100 | android:textSize="15sp" /> |
Mike LeBeau | 466741d | 2010-01-16 12:21:23 -0800 | [diff] [blame] | 101 | </LinearLayout> |
Luca Zanolin | bbd651a | 2011-01-18 15:49:17 +0000 | [diff] [blame] | 102 | </RelativeLayout> |