summaryrefslogtreecommitdiffhomepage
path: root/android/src/main/res/layout
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-03-13 12:10:33 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2019-03-15 19:18:52 +0000
commitb3a1686ec1f4d2eb63ba5cbbfdb57386aebfbc64 (patch)
tree2e74a729b712ba2f4b511e2d74989f66a9847987 /android/src/main/res/layout
parentd8c4ed04242cdc07fbed1a6b6c0d242d86bcc8ec (diff)
downloadmullvadvpn-b3a1686ec1f4d2eb63ba5cbbfdb57386aebfbc64.tar.xz
mullvadvpn-b3a1686ec1f4d2eb63ba5cbbfdb57386aebfbc64.zip
Implement initial Connect screen
Diffstat (limited to 'android/src/main/res/layout')
-rw-r--r--android/src/main/res/layout/connect.xml111
1 files changed, 111 insertions, 0 deletions
diff --git a/android/src/main/res/layout/connect.xml b/android/src/main/res/layout/connect.xml
new file mode 100644
index 0000000000..882b9f5c7e
--- /dev/null
+++ b/android/src/main/res/layout/connect.xml
@@ -0,0 +1,111 @@
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/main_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ >
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:orientation="horizontal"
+ android:gravity="center_vertical"
+ android:padding="12dp"
+ android:background="@color/red"
+ >
+ <ImageView
+ android:layout_width="49dp"
+ android:layout_height="50dp"
+ android:src="@drawable/logo_icon"
+ />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="8dp"
+ android:textColor="@color/white60"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:text="@string/app_name"
+ android:textAllCaps="true"
+ />
+ </LinearLayout>
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="4"
+ />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:orientation="vertical"
+ android:padding="24dp"
+ android:gravity="start"
+ >
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="4dp"
+ android:textColor="@color/red"
+ android:textSize="16sp"
+ android:textStyle="bold"
+ android:text="@string/unsecured_connection"
+ android:textAllCaps="true"
+ />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@color/white"
+ android:textSize="34sp"
+ android:textStyle="bold"
+ android:text="@string/country"
+ />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@color/white"
+ android:textSize="34sp"
+ android:textStyle="bold"
+ android:text=""
+ android:visibility="invisible"
+ />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="@color/white"
+ android:textSize="16sp"
+ android:textStyle="bold"
+ android:text=""
+ android:visibility="invisible"
+ />
+ </LinearLayout>
+
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="0"
+ android:orientation="vertical"
+ android:padding="24dp"
+ >
+ <Button
+ android:layout_marginVertical="16dp"
+ android:text="@string/switch_location"
+ android:drawableRight="@drawable/icon_chevron"
+ android:paddingRight="8dp"
+ style="@style/White20Button"
+ />
+ <Button
+ android:text="@string/connect"
+ style="@style/GreenButton"
+ />
+ </LinearLayout>
+</LinearLayout>