mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
d7070e7ecf
1) Added push messaging toggle to preferences. 2) Added push messaging registration screen to setup flow. 3) Migrated rest of SharedPreferences accessors to TextSecurePreferences.
93 lines
4.1 KiB
XML
93 lines
4.1 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:fillViewport="true"
|
|
android:background="@drawable/background_pattern_repeat">
|
|
|
|
<LinearLayout android:paddingRight="16dip"
|
|
android:paddingLeft="16dip"
|
|
android:paddingTop="10dip"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:orientation="vertical">
|
|
|
|
<TextView style="@style/Registration.Description"
|
|
android:layout_width="fill_parent"
|
|
android:layout_marginBottom="16dip"
|
|
android:layout_marginTop="16dip"
|
|
android:text="@string/registration_activity__textsecure_can_use_the_data_channel_to_avoid_sms_charges_when_communicating_with_other_textsecure_users"/>
|
|
|
|
<TextView style="@style/Registration.Label"
|
|
android:layout_width="fill_parent"
|
|
android:textAllCaps="true"
|
|
android:text="@string/registration_activity__your_country" />
|
|
|
|
<Spinner android:id="@+id/country_spinner"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dip" />
|
|
|
|
<TextView style="@style/Registration.Label"
|
|
android:layout_width="fill_parent"
|
|
android:textAllCaps="true"
|
|
android:text="@string/registration_activity__your_country_code_and_phone_number" />
|
|
|
|
<LinearLayout android:orientation="horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="20sp"
|
|
style="@style/Registration.Constant"
|
|
android:text="+" />
|
|
|
|
<EditText android:id="@+id/country_code"
|
|
android:layout_width="55dip"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:gravity="center"
|
|
android:inputType="phone"
|
|
android:digits="0123456789" />
|
|
|
|
<EditText android:id="@+id/number"
|
|
android:layout_width="0dip"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:inputType="phone"
|
|
android:hint="@string/registration_activity__phone_number"
|
|
android:gravity="center"
|
|
android:singleLine="true"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dip"
|
|
android:layout_marginBottom="20dip"
|
|
android:layout_gravity="right"
|
|
android:orientation="horizontal">
|
|
|
|
<Button android:id="@+id/skipButton"
|
|
android:text="Skip"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="5dip"
|
|
android:layout_weight="1"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
|
|
|
<Button android:id="@+id/registerButton"
|
|
android:text="@string/registration_activity__register"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|