mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-22 16:07:30 +00:00
559 lines
27 KiB
XML
559 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="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"
|
|
android:src="@drawable/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="SMS verification failed."
|
|
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/alert"
|
|
android:paddingLeft="4dip"
|
|
android:paddingRight="4dip"
|
|
android:text="TextSecure timed out while waiting for an SMS message to verify your phone number." />
|
|
</RelativeLayout>
|
|
|
|
<Button
|
|
android:id="@+id/verification_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="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="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="SMS Interceptors."
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="10dip"
|
|
android:text="Some third party text messaging clients, such as Handcent or GoSMS, behave poorly and intercept all incoming SMS messages. Check to see if you received a text message that starts with 'Your TextSecure verification code:', in which case you'll need to configure your third party text messaging app to let text messages through." />
|
|
</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="Incorrect number."
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="10dip"
|
|
android:text="Please check to make sure you entered your number correctly, and that it is formatted for correctly your region." />
|
|
</LinearLayout>
|
|
</TableRow>
|
|
|
|
<TableRow>
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
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="Google Voice."
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingRight="10dip"
|
|
android:text="TextSecure will not work with Google Voice numbers." />
|
|
</LinearLayout>
|
|
</TableRow>
|
|
</TableLayout>
|
|
</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" />
|
|
|
|
<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="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="RedPhone was unable to connect to the switch." />
|
|
</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="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="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="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="Your device needs network connectivity in order to use this TextSecure feature. Check to ensure that it is connected to 3G or Wifi." />
|
|
</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="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="If you are connected via wifi, it's possible that there is a firewall blocking access to the TextSecure server. Try another network or mobile data." />
|
|
</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"
|
|
android:text="TextSecure 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"
|
|
android:visibility="invisible" />
|
|
|
|
<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="Registering with server..."
|
|
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"
|
|
android:visibility="invisible" />
|
|
|
|
<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="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/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"
|
|
android:visibility="invisible" />
|
|
|
|
<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="Registering for push..."
|
|
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/retrieve_directory_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"
|
|
android:visibility="invisible" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/retrieve_directory_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/retrieve_directory_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="Retrieving directory..."
|
|
android:textSize="16.0sp" />
|
|
</TableRow>
|
|
</TableLayout>
|
|
|
|
<TextView
|
|
style="@style/Registration.Description"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="5dip"
|
|
android:text="This could take a moment. Please be patient, we'll notify you when verification is complete." />
|
|
|
|
<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"
|
|
android:text="Waiting for SMS verification..."
|
|
android:textAllCaps="true"
|
|
android:textSize="12.0sp"
|
|
android:textStyle="normal" />
|
|
</RelativeLayout>
|
|
|
|
<ProgressBar
|
|
android:id="@+id/registration_progress"
|
|
style="@android: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="Edit number"
|
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
</ScrollView> |