session-android/res/layout/registration_progress_activity.xml

537 lines
26 KiB
XML
Raw Normal View History

2013-03-25 21:26:03 -07:00
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/background_pattern_repeat"
android:fillViewport="true" >
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center" >
<LinearLayout
android:id="@+id/verification_failure_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="16dip"
android:layout_marginRight="16dip"
android:orientation="vertical"
android:visibility="gone" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dip"
android:layout_marginTop="10dip"
android:background="@drawable/background_pane" >
<ImageView
android:id="@+id/alert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:paddingLeft="4dip"
android:paddingRight="4dip"
2013-07-08 16:29:28 -07:00
android:src="@drawable/alert"
android:contentDescription="Alert"/>
2013-03-25 21:26:03 -07:00
<TextView
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/alert"
android:layout_toRightOf="@id/alert"
android:paddingLeft="4.0dip"
android:paddingRight="8.0dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__sms_verification_failed"
2013-03-25 21:26:03 -07:00
android:textColor="#333333"
android:textSize="16.0sp" />
<TextView
2013-07-08 16:29:28 -07:00
android:id="@+id/sms_failed_text"
2013-03-25 21:26:03 -07:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/alert"
android:paddingLeft="4dip"
android:paddingRight="4dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__textsecure_timed_out_while_waiting_for_a_verification_sms_message" />
2013-03-25 21:26:03 -07:00
</RelativeLayout>
2013-07-08 16:29:28 -07:00
<RelativeLayout android:id="@+id/voice_verification_layout"
android:layout_width="fill_parent"
2013-03-25 21:26:03 -07:00
android:layout_height="wrap_content"
2013-07-08 16:29:28 -07:00
android:layout_marginBottom="10dip"
android:background="@drawable/background_pane">
<ImageView android:id="@+id/telephone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:src="@drawable/telephone"
android:contentDescription="Telephone"/>
<TextView style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/telephone"
android:layout_toRightOf="@id/telephone"
android:paddingLeft="4dip"
android:paddingRight="8dip"
android:text="@string/registration_progress_activity__voice_verification"
android:textColor="#333333"
android:textSize="16sp"/>
<TextView android:id="@+id/telephone_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@id/telephone"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:paddingBottom="10dip"
android:text="@string/registration_progress_activity__textsecure_can_also_call_you_to_verify_your_number"/>
<LinearLayout android:id="@+id/code_container"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@id/telephone_text">
<EditText android:id="@+id/telephone_code"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="6"
android:inputType="number"
android:enabled="false"/>
<Button android:id="@+id/verify_button"
2013-03-25 21:26:03 -07:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__verify"
android:enabled="false"/>
2013-03-25 21:26:03 -07:00
2013-07-08 16:29:28 -07:00
</LinearLayout>
2013-03-25 21:26:03 -07:00
2013-07-08 16:29:28 -07:00
<Button android:id="@+id/call_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_below="@id/code_container"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:layout_marginTop="10dip"
android:text="@string/registration_progress_activity__call_me"/>
<Button
android:id="@+id/verification_failure_edit_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="5dip"
android:layout_marginBottom="10.0dip"
android:gravity="center"
android:text="@string/registration_progress_activity__edit_number"
android:textStyle="bold"
android:layout_below="@id/call_button"/>
</RelativeLayout>
2013-03-25 21:26:03 -07:00
</LinearLayout>
<LinearLayout
android:id="@+id/connectivity_failure_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="16dip"
android:layout_marginRight="16dip"
android:orientation="vertical"
android:visibility="gone" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dip"
android:layout_marginTop="10dip"
android:background="@drawable/background_pane" >
<ImageView
android:id="@+id/connectivity_alert"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:paddingLeft="4dip"
android:paddingRight="4dip"
2013-07-08 16:29:28 -07:00
android:src="@drawable/alert"
android:contentDescription="Alert"/>
2013-03-25 21:26:03 -07:00
<TextView
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/connectivity_alert"
android:layout_toRightOf="@id/connectivity_alert"
android:paddingLeft="4.0dip"
android:paddingRight="8.0dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__connectivity_error"
2013-03-25 21:26:03 -07:00
android:textColor="#333333"
android:textSize="16.0sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/connectivity_alert"
android:paddingLeft="4dip"
android:paddingRight="4dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__textsecure_was_unable_to_connect_to_the_push_service" />
2013-03-25 21:26:03 -07:00
</RelativeLayout>
<Button
android:id="@+id/connectivity_failure_edit_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="10.0dip"
android:gravity="center"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__edit_number"
2013-03-25 21:26:03 -07:00
android:textStyle="bold" />
<TextView
style="@style/Registration.Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__some_possible_problems_include" />
2013-03-25 21:26:03 -07:00
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TableRow>
<TextView
style="@style/Registration.Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dip"
android:text="•" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
style="@style/Registration.Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__no_network_connectivity"
2013-03-25 21:26:03 -07:00
android:textStyle="bold" />
<TextView
style="@style/Registration.Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__your_device_needs_network_connectivity" />
2013-03-25 21:26:03 -07:00
</LinearLayout>
</TableRow>
<TableRow>
<TextView
style="@style/Registration.Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dip"
android:text="•" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
style="@style/Registration.Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__restrictive_firewall"
2013-03-25 21:26:03 -07:00
android:textStyle="bold" />
<TextView
style="@style/Registration.Description"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingRight="10dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__if_you_are_connected_via_wifi_its_possible_that_there_is_a_firewall" />
2013-03-25 21:26:03 -07:00
</LinearLayout>
</TableRow>
</TableLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/registering_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
android:paddingLeft="16dip"
android:paddingRight="16dip" >
<TextView
style="@style/Registration.Description"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:paddingLeft="5dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__textsecure_will_now_automatically_verify_your_number_with_a_confirmation_sms_message" />
2013-03-25 21:26:03 -07:00
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="10dip"
android:layout_marginTop="10dip"
android:background="@drawable/background_pane"
android:gravity="center" >
<TableRow>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center" >
<ImageView
android:id="@+id/connecting_complete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingLeft="4dip"
android:paddingRight="4dip"
2013-07-08 16:29:28 -07:00
android:src="@drawable/check_dark"
android:visibility="invisible"
android:contentDescription="Check"/>
2013-03-25 21:26:03 -07:00
<ProgressBar
android:id="@+id/connecting_progress"
style="?android:attr/android:progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:indeterminate="true"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:visibility="invisible" />
</FrameLayout>
<TextView
android:id="@+id/connecting_text"
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4.0dip"
android:paddingRight="8.0dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__connecting"
2013-03-25 21:26:03 -07:00
android:textSize="16.0sp" />
</TableRow>
<TableRow>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center" >
<ImageView
android:id="@+id/verification_complete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingLeft="4dip"
android:paddingRight="4dip"
2013-07-08 16:29:28 -07:00
android:src="@drawable/check_dark"
android:visibility="invisible"
android:contentDescription="Check"/>
2013-03-25 21:26:03 -07:00
<ProgressBar
android:id="@+id/verification_progress"
style="?android:attr/android:progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:indeterminate="true"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:visibility="invisible" />
</FrameLayout>
<TextView
android:id="@+id/verification_text"
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4.0dip"
android:paddingRight="8.0dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__waiting_for_sms_verification"
2013-03-25 21:26:03 -07:00
android:textSize="16.0sp" />
</TableRow>
<TableRow>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center" >
<ImageView
android:id="@+id/generating_keys_complete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:src="@drawable/check_dark"
android:visibility="invisible"
android:contentDescription="Check"/>
<ProgressBar
android:id="@+id/generating_keys_progress"
style="?android:attr/android:progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:indeterminate="true"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:visibility="invisible" />
</FrameLayout>
<TextView
android:id="@+id/generating_keys_text"
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4.0dip"
android:paddingRight="8.0dip"
android:text="@string/registration_progress_activity__generating_keys"
android:textSize="16.0sp" />
</TableRow>
2013-03-25 21:26:03 -07:00
<TableRow>
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center" >
<ImageView
android:id="@+id/gcm_registering_complete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:paddingLeft="4dip"
android:paddingRight="4dip"
2013-07-08 16:29:28 -07:00
android:src="@drawable/check_dark"
android:visibility="invisible"
android:contentDescription="Check"/>
2013-03-25 21:26:03 -07:00
<ProgressBar
android:id="@+id/gcm_registering_progress"
style="?android:attr/android:progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:indeterminate="true"
android:paddingLeft="4dip"
android:paddingRight="4dip"
android:visibility="invisible" />
</FrameLayout>
<TextView
android:id="@+id/gcm_registering_text"
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="4.0dip"
android:paddingRight="8.0dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__registering_with_server"
2013-03-25 21:26:03 -07:00
android:textSize="16.0sp" />
</TableRow>
</TableLayout>
<TextView
style="@style/Registration.Description"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="5dip"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__this_couild_take_a_moment_please_be_patient" />
2013-03-25 21:26:03 -07:00
<RelativeLayout
android:id="@+id/timer_progress_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="15dip"
android:layout_weight="1.0" >
<TextView
android:id="@+id/registration_timer"
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="1:57"
android:textSize="12.0sp" />
<TextView
style="@style/Registration.Constant"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__waiting_for_sms_verification"
2013-03-25 21:26:03 -07:00
android:textAllCaps="true"
android:textSize="12.0sp"
android:textStyle="normal" />
</RelativeLayout>
<ProgressBar
android:id="@+id/registration_progress"
style="@style/Widget.ProgressBar.Horizontal"
2013-03-25 21:26:03 -07:00
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="14.0dip"
android:layout_marginTop="2.0dip" />
<Button
android:id="@+id/edit_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="6.0dip"
android:layout_weight="1.0"
android:gravity="center"
android:visibility="gone"
2013-07-08 16:29:28 -07:00
android:text="@string/registration_progress_activity__edit_number"
2013-03-25 21:26:03 -07:00
android:textStyle="bold" />
</LinearLayout>
</FrameLayout>
</ScrollView>