<?xml version="1.0" encoding="utf-8"?>
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:background="?attr/backgroundColor">
|
|
<fragment
|
android:id="@+id/status"
|
android:name="org.linphone.fragments.StatusBarFragment"
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
tools:layout="@layout/status_bar" />
|
|
<include
|
android:id="@+id/top_bar"
|
layout="@layout/assistant_topbar" />
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<TextView
|
style="@style/standard_text_font"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:gravity="center"
|
android:text="@string/assistant_generic_account"
|
android:paddingTop="10dp"
|
android:textAllCaps="true" />
|
|
<TextView
|
style="@style/standard_small_text_font"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:layout_gravity="top"
|
android:paddingTop="10dp"
|
android:text="@string/assistant_login_desc" />
|
|
<GridLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:columnCount="2">
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_gravity="fill"
|
android:layout_columnWeight="1"
|
android:layout_height="wrap_content"
|
android:padding="10dp"
|
android:orientation="vertical">
|
|
<TextView
|
style="@style/assistant_input_field_header_font"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@string/username"
|
android:textAllCaps="true" />
|
|
<EditText
|
android:id="@+id/assistant_username"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/resizable_textfield"
|
android:contentDescription="@string/content_description_username_field"
|
android:inputType="text|textNoSuggestions"
|
android:maxLines="1"
|
android:hint="@string/username"
|
android:textColor="@color/black_color" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_gravity="fill"
|
android:layout_columnWeight="1"
|
android:layout_height="wrap_content"
|
android:padding="10dp"
|
android:orientation="vertical">
|
|
<TextView
|
style="@style/assistant_input_field_header_font"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@string/password"
|
android:textAllCaps="true" />
|
|
<EditText
|
android:id="@+id/assistant_password"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/resizable_textfield"
|
android:inputType="textPassword"
|
android:maxLines="1"
|
android:hint="@string/password"
|
android:textColor="@color/black_color" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_gravity="fill"
|
android:layout_columnWeight="1"
|
android:layout_height="wrap_content"
|
android:padding="10dp"
|
android:orientation="vertical">
|
|
<TextView
|
style="@style/assistant_input_field_header_font"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@string/domain"
|
android:textAllCaps="true" />
|
|
<EditText
|
android:id="@+id/assistant_domain"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/resizable_textfield"
|
android:contentDescription="@string/content_description_domain_field"
|
android:inputType="textUri"
|
android:maxLines="1"
|
android:hint="@string/domain"
|
android:textColor="@color/black_color" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_gravity="fill"
|
android:layout_columnWeight="1"
|
android:layout_height="wrap_content"
|
android:padding="10dp"
|
android:orientation="vertical">
|
|
<TextView
|
style="@style/assistant_input_field_header_font"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@string/assistant_display_name_optional"
|
android:textAllCaps="true" />
|
|
<EditText
|
android:id="@+id/assistant_display_name"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/resizable_textfield"
|
android:contentDescription="@string/content_description_display_field"
|
android:inputType="textPersonName"
|
android:maxLines="1"
|
android:hint="@string/assistant_display_name_optional"
|
android:textColor="@color/black_color" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="wrap_content"
|
android:layout_gravity="fill"
|
android:layout_columnWeight="1"
|
android:layout_height="wrap_content"
|
android:padding="10dp"
|
android:orientation="vertical">
|
|
<TextView
|
style="@style/assistant_input_field_header_font"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@string/transport"
|
android:textAllCaps="true" />
|
|
<RadioGroup
|
android:id="@+id/assistant_transports"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="horizontal">
|
|
<RadioButton
|
android:id="@+id/transport_udp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_margin="5dp"
|
android:textColor="?attr/primaryTextColor"
|
android:text="@string/pref_transport_udp" />
|
|
<RadioButton
|
android:id="@+id/transport_tcp"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_margin="5dp"
|
android:textColor="?attr/primaryTextColor"
|
android:text="@string/pref_transport_tcp" />
|
|
<RadioButton
|
android:id="@+id/transport_tls"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_margin="5dp"
|
android:textColor="?attr/primaryTextColor"
|
android:checked="true"
|
android:text="@string/pref_transport_tls" />
|
|
</RadioGroup>
|
|
</LinearLayout>
|
|
<TextView
|
android:id="@+id/assistant_login"
|
android:text="@string/assistant_login"
|
android:background="@drawable/assistant_button"
|
android:textColor="@drawable/assistant_button_text_color"
|
style="@style/button_font"
|
android:layout_gravity="center"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_margin="10dp"
|
android:padding="10dp"/>
|
|
</GridLayout>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</LinearLayout>
|