blob: 57878883120424621afd50011971fd7abf599581 [file] [log] [blame]
Mike LeBeau466741d2010-01-16 12:21:23 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
satok015b21c2011-04-20 11:29:26 +09003/*
Mike LeBeau466741d2010-01-16 12:21:23 -08004**
5** Copyright 2009, The Android Open Source Project
6**
satok015b21c2011-04-20 11:29:26 +09007** 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 LeBeau466741d2010-01-16 12:21:23 -080010**
satok015b21c2011-04-20 11:29:26 +090011** http://www.apache.org/licenses/LICENSE-2.0
Mike LeBeau466741d2010-01-16 12:21:23 -080012**
satok015b21c2011-04-20 11:29:26 +090013** 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 LeBeau466741d2010-01-16 12:21:23 -080017** limitations under the License.
18*/
Luca Zanolinbbd651a2011-01-18 15:49:17 +000019-->
20<RelativeLayout
21 xmlns:android="http://schemas.android.com/apk/res/android"
Mike LeBeau466741d2010-01-16 12:21:23 -080022 android:layout_height="wrap_content"
Mike LeBeau466741d2010-01-16 12:21:23 -080023 android:layout_width="match_parent"
Luca Zanolinbbd651a2011-01-18 15:49:17 +000024 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"
Tadashi G. Takaoka7c38b732012-03-21 19:08:58 +090029 android:layout_height="371dp"
30 android:layout_width="500dp"
Luca Zanolinbbd651a2011-01-18 15:49:17 +000031 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"
Tadashi G. Takaoka7c38b732012-03-21 19:08:58 +090039 android:layout_marginTop="10dp"
satok015b21c2011-04-20 11:29:26 +090040 android:textSize="20sp"
Luca Zanolinbbd651a2011-01-18 15:49:17 +000041 android:textColor="#ffffff"
42 android:layout_gravity="center"
43 android:visibility="invisible"/>
44 <RelativeLayout
Tadashi G. Takaoka7c38b732012-03-21 19:08:58 +090045 android:layout_height="0dp"
Luca Zanolinbbd651a2011-01-18 15:49:17 +000046 android:layout_width="match_parent"
47 android:layout_weight="1.0">
satok9807ab22011-03-16 14:57:08 -070048 <com.android.inputmethod.deprecated.voice.SoundIndicator
Luca Zanolinbbd651a2011-01-18 15:49:17 +000049 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"
Tadashi G. Takaoka7c38b732012-03-21 19:08:58 +090068 android:layout_height="60dp"
69 android:layout_width="60dp"
Luca Zanolinbbd651a2011-01-18 15:49:17 +000070 android:layout_centerInParent="true"
71 android:visibility="gone"/>
72 </RelativeLayout>
Luca Zanolin2c5ec3a2011-01-24 10:36:15 +000073 <!--
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"
satok015b21c2011-04-20 11:29:26 +090084 android:textSize="15sp"
Tadashi G. Takaoka7c38b732012-03-21 19:08:58 +090085 android:layout_marginTop="3dp"
86 android:layout_marginBottom="3dp"
Luca Zanolin2c5ec3a2011-01-24 10:36:15 +000087 android:layout_gravity="center"
88 android:textColor="#ffffff"
89 android:visibility="invisible"/>
Luca Zanolinbbd651a2011-01-18 15:49:17 +000090 <Button
91 android:id="@+id/button"
92 android:layout_width="match_parent"
Tadashi G. Takaoka7c38b732012-03-21 19:08:58 +090093 android:layout_height="30dp"
Luca Zanolinbbd651a2011-01-18 15:49:17 +000094 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"
satok015b21c2011-04-20 11:29:26 +0900100 android:textSize="15sp" />
Mike LeBeau466741d2010-01-16 12:21:23 -0800101 </LinearLayout>
Luca Zanolinbbd651a2011-01-18 15:49:17 +0000102</RelativeLayout>