mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-17 21:47:28 +00:00
4fa6680f83
Closes #4916 Fixes #4714
541 lines
27 KiB
XML
541 lines
27 KiB
XML
<?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="wrap_content"
|
|
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"
|
|
android:src="@drawable/alert"
|
|
android:contentDescription="@string/registration_progress_activity__alert"/>
|
|
|
|
<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"
|
|
android:text="@string/registration_progress_activity__sms_verification_failed"
|
|
android:textColor="#333333"
|
|
android:textSize="16.0sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/sms_failed_text"
|
|
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"
|
|
android:text="@string/registration_progress_activity__signal_timed_out_while_waiting_for_a_verification_sms_message" />
|
|
</RelativeLayout>
|
|
|
|
|
|
<RelativeLayout android:id="@+id/voice_verification_layout"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
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="@string/registration_progress_activity__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__signal_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"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/registration_progress_activity__verify"
|
|
android:enabled="false"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<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>
|
|
</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"
|
|
android:src="@drawable/alert"
|
|
android:contentDescription="@string/registration_progress_activity__alert"/>
|
|
|
|
<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"
|
|
android:text="@string/registration_progress_activity__connectivity_error"
|
|
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"
|
|
android:text="@string/registration_progress_activity__signal_was_unable_to_connect_to_the_server" />
|
|
</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"
|
|
android:text="@string/registration_progress_activity__edit_number"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="10dip"
|
|
android:text="@string/registration_progress_activity__some_possible_problems_include" />
|
|
|
|
<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"
|
|
android:text="@string/registration_progress_activity__no_network_connectivity"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="10dip"
|
|
android:text="@string/registration_progress_activity__your_device_needs_network_connectivity" />
|
|
</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"
|
|
android:text="@string/registration_progress_activity__restrictive_firewall"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="10dip"
|
|
android:text="@string/registration_progress_activity__if_you_are_connected_via_wifi_its_possible_that_there_is_a_firewall" />
|
|
</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:gravity="start"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dip"
|
|
android:paddingLeft="5dip"
|
|
android:text="@string/registration_progress_activity__signal_will_now_automatically_verify_your_number_with_a_confirmation_sms_message" />
|
|
|
|
<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"
|
|
android:src="@drawable/check_dark"
|
|
android:visibility="invisible"
|
|
android:contentDescription="@string/registration_progress_activity__check"/>
|
|
|
|
<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"
|
|
android:text="@string/registration_progress_activity__connecting"
|
|
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"
|
|
android:src="@drawable/check_dark"
|
|
android:visibility="invisible"
|
|
android:contentDescription="@string/registration_progress_activity__check"/>
|
|
|
|
<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"
|
|
android:text="@string/registration_progress_activity__waiting_for_sms_verification"
|
|
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="@string/registration_progress_activity__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>
|
|
|
|
<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"
|
|
android:src="@drawable/check_dark"
|
|
android:visibility="invisible"
|
|
android:contentDescription="@string/registration_progress_activity__check"/>
|
|
|
|
<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"
|
|
android:text="@string/registration_progress_activity__registering_with_server"
|
|
android:textSize="16.0sp" />
|
|
</TableRow>
|
|
|
|
</TableLayout>
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:gravity="start"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="5dip"
|
|
android:text="@string/registration_progress_activity__this_couild_take_a_moment_please_be_patient" />
|
|
|
|
<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:layout_alignParentEnd="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"
|
|
android:layout_alignParentStart="true"
|
|
android:text="@string/registration_progress_activity__waiting_for_sms_verification"
|
|
android:textAllCaps="true"
|
|
android:textSize="12.0sp"
|
|
android:textStyle="normal" />
|
|
</RelativeLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/registration_progress"
|
|
style="@style/Widget.ProgressBar.Horizontal"
|
|
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"
|
|
android:text="@string/registration_progress_activity__edit_number"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
</ScrollView> |