1<?xml version="1.0" encoding="utf-8"?> 2<!-- Outer layout for all OTA elements. This contains: 3 (1) Certain call card elements used for the other various OTA screens 4 (2) Activate/Cancel buttons specific to the OTA Activate screen 5 (3) Buttons used on the listen/progress screens 6 (4) Button used for the final success/failure screen --> 7<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 8 android:orientation="vertical" 9 android:gravity="center_horizontal" 10 android:layout_width="fill_parent" 11 android:layout_height="fill_parent" 12 > 13 14 <!-- (1) The ota call card shared widgets --> 15 <ScrollView android:layout_width="fill_parent" 16 android:layout_height="wrap_content"> 17 18 <LinearLayout android:id="@+id/otaBase" 19 android:orientation="vertical" 20 android:layout_width="fill_parent" 21 android:layout_height="wrap_content" > 22 23 <TextView android:id="@+id/otaTitle" 24 android:layout_width="fill_parent" 25 android:layout_height="wrap_content" 26 android:textAppearance="@style/ccOtaWizardTitle" 27 android:text="@string/ota_title_activate" 28 /> 29 30 <View 31 android:layout_width="wrap_content" 32 android:layout_height="1dip" 33 android:layout_gravity="center" 34 android:background="@drawable/green_divider" 35 android:layout_marginTop="14dip" 36 android:focusable="false" 37 android:clickable="false" 38 /> 39 40 <TextView android:id="@+id/otaActivate" 41 android:layout_marginTop="@dimen/otaactivate_layout_marginTop" 42 android:layout_width="fill_parent" 43 android:layout_height="wrap_content" 44 android:textAppearance="@style/ccOtaTextPrimary" 45 android:visibility="gone" 46 android:text="@string/ota_touch_activate" 47 /> 48 49 <TextView android:id="@+id/otaListenProgress" 50 android:layout_marginTop="@dimen/otalistenprogress_layout_marginTop" 51 android:layout_width="fill_parent" 52 android:layout_height="wrap_content" 53 android:textAppearance="@style/ccOtaTextPrimary" 54 android:visibility="gone" 55 /> 56 57 <ProgressBar android:id="@+android:id/progress_large" 58 style="?android:attr/progressBarStyleHorizontal" 59 android:layout_marginTop="20dip" 60 android:layout_width="fill_parent" 61 android:layout_height="wrap_content" 62 android:visibility="gone"/> 63 64 <TextView android:id="@+id/otaSuccessFailStatus" 65 android:gravity="left" 66 android:layout_marginTop="@dimen/otasuccessfail_layout_marginTop" 67 android:layout_marginLeft="5dip" 68 android:layout_width="fill_parent" 69 android:layout_height="wrap_content" 70 android:textAppearance="@style/ccOtaTextPrimary" 71 android:visibility="gone" 72 /> 73 74 <!-- DTMF Dialer section --> 75 <com.android.phone.DTMFTwelveKeyDialerView 76 xmlns:android="http://schemas.android.com/apk/res/android" 77 android:id="@+id/otaDtmfDialer" 78 android:layout_width="fill_parent" 79 android:layout_height="fill_parent" 80 android:orientation="vertical" 81 android:layout_marginTop="1dip" 82 android:visibility="gone" > 83 84 <!-- Note there's no "dtmfDialerField" EditText here; 85 in the OTA UI there's no visible "digits" display 86 attached to the dialpad. --> 87 88 <!-- Keypad section --> 89 <include layout="@layout/dialpad" /> 90 91 </com.android.phone.DTMFTwelveKeyDialerView> 92 93 </LinearLayout> 94 95 </ScrollView> 96 97 <View 98 android:layout_width="fill_parent" 99 android:layout_height="0dip" 100 android:layout_weight="1" 101 /> 102 103 <!-- "Speaker" button --> 104 <ToggleButton android:id="@+id/otaSpeakerButton" 105 android:layout_gravity="center" 106 android:textOn="@string/ota_speaker" 107 android:textOff="@string/ota_speaker" 108 style="@style/ccOtaButton" /> 109 110 <!-- (2) Activate/cancel buttons --> 111 <RelativeLayout android:id="@+id/callCardOtaActivate" 112 android:visibility="gone" 113 style="@style/ccOtaButtonBar" > 114 115 <!-- "Activate" button --> 116 <Button android:id="@+id/otaActivateButton" 117 android:text="@string/ota_activate" 118 style="@style/ccOtaNextButton" /> 119 120 <!-- "Cancel" button --> 121 <Button android:id="@+id/otaCancelButton" 122 android:text="@string/ota_back" 123 style="@style/ccOtaBackButton" /> 124 125 </RelativeLayout> 126 127 <!-- (3) OTA listen/progress buttons --> 128 <RelativeLayout android:id="@+id/callCardOtaListenProgress" 129 android:visibility="gone" 130 style="@style/ccOtaButtonBar" > 131 132 <!-- "End" button --> 133 <Button android:id="@+id/otaEndButton" 134 android:text="@string/ota_call_end" 135 style="@style/ccOtaBackButton" /> 136 </RelativeLayout> 137 138 <!-- (4) OTA Success/Failure button --> 139 <RelativeLayout android:id="@+id/callCardOtaFailOrSuccessful" 140 android:visibility="gone" 141 style="@style/ccOtaButtonBar" > 142 143 <!-- "Next" button --> 144 <Button android:id="@+id/otaNextButton" 145 android:text="@string/ota_next" 146 style="@style/ccOtaNextButton" /> 147 148 <!-- "Try Again" button --> 149 <Button android:id="@+id/otaTryAgainButton" 150 android:text="@string/ota_try_again" 151 style="@style/ccOtaBackButton" /> 152 </RelativeLayout> 153</LinearLayout> 154