diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-07-28 19:21:03 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-07-29 12:14:14 +0000 |
| commit | 713e05d8961881a1e3f7bd7680fe671f5e840902 (patch) | |
| tree | 897a954a9cddf8e3bd839418045c1f3e63faf23d /android/src/main/res | |
| parent | 6403534b1a16aacf0883a5e8c46812144c507b79 (diff) | |
| download | mullvadvpn-713e05d8961881a1e3f7bd7680fe671f5e840902.tar.xz mullvadvpn-713e05d8961881a1e3f7bd7680fe671f5e840902.zip | |
Use new `HeaderBar` widget
Diffstat (limited to 'android/src/main/res')
| -rw-r--r-- | android/src/main/res/layout/connect.xml | 35 | ||||
| -rw-r--r-- | android/src/main/res/layout/login.xml | 32 | ||||
| -rw-r--r-- | android/src/main/res/layout/out_of_time.xml | 35 | ||||
| -rw-r--r-- | android/src/main/res/layout/welcome.xml | 35 |
4 files changed, 13 insertions, 124 deletions
diff --git a/android/src/main/res/layout/connect.xml b/android/src/main/res/layout/connect.xml index 2d7877cf2b..789f82e6da 100644 --- a/android/src/main/res/layout/connect.xml +++ b/android/src/main/res/layout/connect.xml @@ -3,37 +3,10 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> - <LinearLayout android:id="@+id/header_bar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - android:gravity="center_vertical" - android:background="@color/red" - android:elevation="0.5dp"> - <ImageView android:layout_width="50dp" - android:layout_height="50dp" - android:layout_marginLeft="12dp" - android:layout_marginVertical="12dp" - android:layout_weight="0" - android:src="@drawable/logo_icon" /> - <TextView android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginHorizontal="8dp" - android:layout_marginVertical="12dp" - android:layout_weight="1" - android:textColor="@color/white80" - android:textSize="24sp" - android:textStyle="bold" - android:text="@string/app_name" - android:textAllCaps="true" /> - <ImageButton android:id="@+id/settings" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_weight="0" - android:paddingHorizontal="12dp" - android:background="?android:attr/selectableItemBackground" - android:src="@drawable/icon_settings" /> - </LinearLayout> + <net.mullvad.mullvadvpn.ui.widget.HeaderBar android:id="@+id/header_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:elevation="0.5dp" /> <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent"> <net.mullvad.mullvadvpn.ui.widget.NotificationBanner android:id="@+id/notification_banner" diff --git a/android/src/main/res/layout/login.xml b/android/src/main/res/layout/login.xml index 0c4cd93fdb..fa96ddf91c 100644 --- a/android/src/main/res/layout/login.xml +++ b/android/src/main/res/layout/login.xml @@ -7,35 +7,9 @@ <LinearLayout 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"> - <ImageView android:layout_width="50dp" - android:layout_height="50dp" - android:layout_weight="0" - android:layout_marginLeft="12dp" - android:layout_marginVertical="12dp" - android:src="@drawable/logo_icon" /> - <TextView android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:layout_marginHorizontal="8dp" - android:layout_marginVertical="12dp" - android:textColor="@color/white60" - android:textSize="24sp" - android:textStyle="bold" - android:text="@string/app_name" - android:textAllCaps="true" /> - <ImageButton android:id="@+id/settings" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_weight="0" - android:paddingHorizontal="12dp" - android:background="?android:attr/selectableItemBackground" - android:src="@drawable/icon_settings" /> - </LinearLayout> + <net.mullvad.mullvadvpn.ui.widget.HeaderBar android:id="@+id/header_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" diff --git a/android/src/main/res/layout/out_of_time.xml b/android/src/main/res/layout/out_of_time.xml index 150a86787e..6fda6d9be0 100644 --- a/android/src/main/res/layout/out_of_time.xml +++ b/android/src/main/res/layout/out_of_time.xml @@ -2,38 +2,9 @@ xmlns:mullvad="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> - <LinearLayout android:id="@+id/header_bar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="0" - android:orientation="horizontal" - android:gravity="center_vertical" - android:background="@color/red" - android:elevation="0.5dp"> - <ImageView android:layout_width="50dp" - android:layout_height="50dp" - android:layout_marginLeft="12dp" - android:layout_marginVertical="12dp" - android:layout_weight="0" - android:src="@drawable/logo_icon" /> - <TextView android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginHorizontal="8dp" - android:layout_marginVertical="12dp" - android:layout_weight="1" - android:textColor="@color/white80" - android:textSize="24sp" - android:textStyle="bold" - android:text="@string/app_name" - android:textAllCaps="true" /> - <ImageButton android:id="@+id/settings" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_weight="0" - android:paddingHorizontal="12dp" - android:background="?android:attr/selectableItemBackground" - android:src="@drawable/icon_settings" /> - </LinearLayout> + <net.mullvad.mullvadvpn.ui.widget.HeaderBar android:id="@+id/header_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" diff --git a/android/src/main/res/layout/welcome.xml b/android/src/main/res/layout/welcome.xml index 147e0b3294..5ce39f65a9 100644 --- a/android/src/main/res/layout/welcome.xml +++ b/android/src/main/res/layout/welcome.xml @@ -2,38 +2,9 @@ xmlns:mullvad="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent"> - <LinearLayout android:id="@+id/header_bar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:orientation="horizontal" - android:gravity="center_vertical" - android:background="@color/red" - android:elevation="0.5dp"> - <ImageView android:layout_width="50dp" - android:layout_height="50dp" - android:layout_marginLeft="12dp" - android:layout_marginVertical="12dp" - android:layout_weight="0" - android:src="@drawable/logo_icon" /> - <TextView android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginHorizontal="8dp" - android:layout_marginVertical="12dp" - android:layout_weight="1" - android:textColor="@color/white80" - android:textSize="24sp" - android:textStyle="bold" - android:text="@string/app_name" - android:textAllCaps="true" /> - <ImageButton android:id="@+id/settings" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_weight="0" - android:paddingHorizontal="12dp" - android:background="?android:attr/selectableItemBackground" - android:src="@drawable/icon_settings" /> - </LinearLayout> + <net.mullvad.mullvadvpn.ui.widget.HeaderBar android:id="@+id/header_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" |
