mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
3aae86d20c
// FREEBIE
140 lines
6.4 KiB
XML
140 lines
6.4 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:padding="16dp"
|
|
android:paddingBottom="0dp"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
android:orientation="vertical">
|
|
|
|
<Spinner android:id="@+id/country_spinner"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dip" />
|
|
|
|
<LinearLayout android:orientation="horizontal"
|
|
android:layoutDirection="ltr"
|
|
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"
|
|
android:maxLength="3" />
|
|
|
|
<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>
|
|
|
|
<TextView style="@style/Registration.Description"
|
|
android:layout_width="fill_parent"
|
|
android:layout_marginBottom="8dip"
|
|
android:layout_marginTop="16dip"
|
|
android:gravity="start"
|
|
android:text="@string/registration_activity__verify_your_number_to_connect_with_signal"/>
|
|
|
|
<TextView style="@style/Registration.Description"
|
|
android:id="@+id/registration_information"
|
|
android:layout_width="fill_parent"
|
|
android:gravity="start"
|
|
android:visibility="gone"
|
|
android:layout_marginBottom="16dp"
|
|
android:text="@string/registration_activity__registration_will_transmit_some_contact_information_to_the_server_temporariliy"/>
|
|
|
|
<LinearLayout android:id="@+id/information_link_container"
|
|
android:clickable="true"
|
|
android:orientation="horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="16dip">
|
|
|
|
<ImageView android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="false"
|
|
android:src="@drawable/ic_info_white_18dp"
|
|
android:tint="#73B7F0"/>
|
|
|
|
<TextView style="@style/Registration.Description"
|
|
android:id="@+id/information_label"
|
|
android:clickable="false"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="3dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:textColor="#73B7F0"
|
|
android:text="@string/RegistrationActivity_more_information"/>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dip"
|
|
android:layout_marginBottom="16dip"
|
|
android:layout_gravity="right"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView android:id="@+id/skipButton"
|
|
android:paddingLeft="20dp"
|
|
android:paddingRight="20dp"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="15dp"
|
|
android:text="@android:string/cancel"
|
|
android:textColor="@color/white"
|
|
android:background="@drawable/pill_button"
|
|
android:backgroundTint="@color/grey_400"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginRight="5dip"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<TextView android:id="@+id/registerButton"
|
|
android:paddingLeft="20dp"
|
|
android:paddingRight="20dp"
|
|
android:paddingTop="15dp"
|
|
android:paddingBottom="15dp"
|
|
android:text="@string/registration_activity__register"
|
|
android:textColor="@color/white"
|
|
android:background="@drawable/pill_button"
|
|
android:backgroundTint="@color/signal_primary"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView android:id="@+id/twilio_shoutout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_twilio_shoutout_white"
|
|
android:layout_gravity="right"
|
|
android:tint="@color/grey_800"
|
|
android:contentDescription="@string/registration_activity__powered_by_twilio"/>
|
|
|
|
</LinearLayout>
|
|
</ScrollView>
|