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="match_parent" 11 android:layout_height="match_parent" 12 > 13 14 <!-- (1) The ota call card shared widgets --> 15 <ScrollView android:layout_width="match_parent" 16 android:layout_height="wrap_content"> 17 18 <LinearLayout android:id="@+id/otaBase" 19 android:orientation="vertical" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" > 22 23 <TextView android:id="@+id/otaTitle" 24 android:layout_width="match_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="match_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 <ScrollView android:id="@+id/otaListenProgressContainer" 50 android:layout_marginTop="@dimen/otalistenprogress_layout_marginTop" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:visibility="gone"> 54 <TextView android:id="@+id/otaListenProgress" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:textAppearance="@style/ccOtaTextPrimary" 58 /> 59 </ScrollView> 60 61 <ProgressBar android:id="@+android:id/progress_large" 62 style="?android:attr/progressBarStyleHorizontal" 63 android:layout_marginTop="20dip" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:visibility="gone"/> 67 68 <TextView android:id="@+id/otaSuccessFailStatus" 69 android:gravity="left" 70 android:layout_marginTop="@dimen/otasuccessfail_layout_marginTop" 71 android:layout_marginLeft="5dip" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:textAppearance="@style/ccOtaTextPrimary" 75 android:visibility="gone" 76 /> 77 78 <!-- DTMF Dialer section --> 79 <com.android.phone.DTMFTwelveKeyDialerView 80 xmlns:android="http://schemas.android.com/apk/res/android" 81 android:id="@+id/otaDtmfDialer" 82 android:layout_width="match_parent" 83 android:layout_height="wrap_content" 84 android:orientation="vertical" 85 android:layout_marginTop="1dip" 86 android:visibility="gone" > 87 88 <!-- Note there's no "dtmfDialerField" EditText here; 89 in the OTA UI there's no visible "digits" display 90 attached to the dialpad. --> 91 92 <!-- Keypad section --> 93 <include layout="@layout/dialpad" /> 94 95 </com.android.phone.DTMFTwelveKeyDialerView> 96 97 </LinearLayout> 98 99 </ScrollView> 100 101 <View 102 android:layout_width="match_parent" 103 android:layout_height="0dip" 104 android:layout_weight="1" 105 /> 106 107 <!-- "Speaker" button --> 108 <ToggleButton android:id="@+id/otaSpeakerButton" 109 android:layout_gravity="center" 110 android:textOn="@string/ota_speaker" 111 android:textOff="@string/ota_speaker" 112 style="@style/ccOtaButton" /> 113 114 <!-- (2) Activate/cancel buttons --> 115 <RelativeLayout android:id="@+id/callCardOtaActivate" 116 android:visibility="gone" 117 style="@style/ccOtaButtonBar" > 118 119 <!-- "Activate" button --> 120 <Button android:id="@+id/otaActivateButton" 121 android:text="@string/ota_activate" 122 style="@style/ccOtaNextButton" /> 123 124 <!-- "Skip" button --> <!-- TODO: borrowing another button's label for now because I missed the localization deadline for adding a @string/ota_skip --> 125 <Button android:id="@+id/otaSkipButton" 126 android:text="@string/ota_skip_activation_dialog_skip_label" 127 style="@style/ccOtaSkipButton" /> 128 129 </RelativeLayout> 130 131 <!-- (3) OTA listen/progress buttons --> 132 <RelativeLayout android:id="@+id/callCardOtaListenProgress" 133 android:visibility="gone" 134 style="@style/ccOtaButtonBar" > 135 136 <!-- "End" button --> 137 <Button android:id="@+id/otaEndButton" 138 android:text="@string/ota_call_end" 139 style="@style/ccOtaSkipButton" /> 140 </RelativeLayout> 141 142 <!-- (4) OTA Success/Failure button --> 143 <RelativeLayout android:id="@+id/callCardOtaFailOrSuccessful" 144 android:visibility="gone" 145 style="@style/ccOtaButtonBar" > 146 147 <!-- "Next" button --> 148 <Button android:id="@+id/otaNextButton" 149 android:text="@string/ota_next" 150 style="@style/ccOtaNextButton" /> 151 152 <!-- "Try Again" button --> 153 <Button android:id="@+id/otaTryAgainButton" 154 android:text="@string/ota_try_again" 155 style="@style/ccOtaSkipButton" /> 156 </RelativeLayout> 157 </LinearLayout> 158