From 86619a6ebb4508cd75584f12db69b2c1ed22ef2d Mon Sep 17 00:00:00 2001 From: cyberta Date: Wed, 23 Nov 2022 11:38:34 +0100 Subject: split eip fragment xml per normal/custom flavor --- app/src/normal/res/layout-port/f_eip.xml | 113 ++++++++++++++++++ app/src/normal/res/layout-xlarge-port/f_eip.xml | 122 ++++++++++++++++++++ app/src/normal/res/layout-xlarge/f_eip.xml | 127 +++++++++++++++++++++ app/src/normal/res/layout/f_eip.xml | 146 ++++++++++++++++++++++++ 4 files changed, 508 insertions(+) create mode 100644 app/src/normal/res/layout-port/f_eip.xml create mode 100644 app/src/normal/res/layout-xlarge-port/f_eip.xml create mode 100644 app/src/normal/res/layout-xlarge/f_eip.xml create mode 100644 app/src/normal/res/layout/f_eip.xml (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/layout-port/f_eip.xml b/app/src/normal/res/layout-port/f_eip.xml new file mode 100644 index 00000000..cb99a700 --- /dev/null +++ b/app/src/normal/res/layout-port/f_eip.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/normal/res/layout-xlarge-port/f_eip.xml b/app/src/normal/res/layout-xlarge-port/f_eip.xml new file mode 100644 index 00000000..10b7a7e3 --- /dev/null +++ b/app/src/normal/res/layout-xlarge-port/f_eip.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/normal/res/layout-xlarge/f_eip.xml b/app/src/normal/res/layout-xlarge/f_eip.xml new file mode 100644 index 00000000..e6b28c67 --- /dev/null +++ b/app/src/normal/res/layout-xlarge/f_eip.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/normal/res/layout/f_eip.xml b/app/src/normal/res/layout/f_eip.xml new file mode 100644 index 00000000..9a823b65 --- /dev/null +++ b/app/src/normal/res/layout/f_eip.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3 From 0cf31d76c9f48cc73446b3fde478a46cd29c7594 Mon Sep 17 00:00:00 2001 From: cyberta Date: Tue, 29 Nov 2022 00:58:36 +0100 Subject: split EipFragment and MainButon into normal and custom flavor, implement new on-off button design for Bitmask --- app/src/normal/res/drawable/rainbow_circle.xml | 103 ++++++++++++++++++ app/src/normal/res/layout/v_main_button.xml | 142 +++++++++++++++++++++++++ 2 files changed, 245 insertions(+) create mode 100644 app/src/normal/res/drawable/rainbow_circle.xml create mode 100644 app/src/normal/res/layout/v_main_button.xml (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/drawable/rainbow_circle.xml b/app/src/normal/res/drawable/rainbow_circle.xml new file mode 100644 index 00000000..44a35ba9 --- /dev/null +++ b/app/src/normal/res/drawable/rainbow_circle.xml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/normal/res/layout/v_main_button.xml b/app/src/normal/res/layout/v_main_button.xml new file mode 100644 index 00000000..e3f96693 --- /dev/null +++ b/app/src/normal/res/layout/v_main_button.xml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3 From c2f6bc4e2098265fb1fc8f671dbdecbb5917c6fc Mon Sep 17 00:00:00 2001 From: cyberta Date: Tue, 29 Nov 2022 14:01:05 +0100 Subject: new EipFragment layout for Bitmask - portrait --- app/src/normal/res/color/button_tint_color.xml | 9 ++ app/src/normal/res/drawable/background_red.xml | 26 ++++++ .../res/drawable/cust_button_primary_rect.xml | 79 ++++++++++++++++ app/src/normal/res/layout-port/f_eip.xml | 85 ++++++++++++----- app/src/normal/res/layout-xlarge-port/f_eip.xml | 1 - app/src/normal/res/layout-xlarge/f_eip.xml | 1 - app/src/normal/res/layout/f_eip.xml | 65 ++++++++----- app/src/normal/res/layout/v_location_button.xml | 104 +++++++++++++++++++++ 8 files changed, 320 insertions(+), 50 deletions(-) create mode 100644 app/src/normal/res/color/button_tint_color.xml create mode 100644 app/src/normal/res/drawable/background_red.xml create mode 100644 app/src/normal/res/drawable/cust_button_primary_rect.xml create mode 100644 app/src/normal/res/layout/v_location_button.xml (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/color/button_tint_color.xml b/app/src/normal/res/color/button_tint_color.xml new file mode 100644 index 00000000..f15e571d --- /dev/null +++ b/app/src/normal/res/color/button_tint_color.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/app/src/normal/res/drawable/background_red.xml b/app/src/normal/res/drawable/background_red.xml new file mode 100644 index 00000000..0189357c --- /dev/null +++ b/app/src/normal/res/drawable/background_red.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/normal/res/drawable/cust_button_primary_rect.xml b/app/src/normal/res/drawable/cust_button_primary_rect.xml new file mode 100644 index 00000000..74ddccb0 --- /dev/null +++ b/app/src/normal/res/drawable/cust_button_primary_rect.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/normal/res/layout-port/f_eip.xml b/app/src/normal/res/layout-port/f_eip.xml index cb99a700..c068df66 100644 --- a/app/src/normal/res/layout-port/f_eip.xml +++ b/app/src/normal/res/layout-port/f_eip.xml @@ -5,7 +5,6 @@ android:layout_height="match_parent" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/eipServiceFragment" - tools:viewBindingIgnore="true" > + + + + + + + app:srcCompat="@drawable/bg_red" + android:layout_marginTop="-100dp" + android:layout_marginRight="-100dp" + android:layout_marginBottom="-100dp" + android:layout_marginLeft="-100dp" + /> + - + + + + /> + + @@ -35,16 +40,13 @@ android:layout_width="0dp" android:layout_height="0dp" android:orientation="horizontal" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintGuide_percent="0.55" - app:layout_constraintRight_toRightOf="parent" /> + app:layout_constraintGuide_percent="0.45" /> @@ -53,9 +55,8 @@ android:layout_width="0dp" android:layout_height="0dp" android:orientation="horizontal" - app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintGuide_percent="0.98" - app:layout_constraintRight_toRightOf="parent" /> + /> + android:layout_margin="-100dp" + app:srcCompat="@drawable/bg_red" /> - - + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3 From c7a23493cb2efe079af9a79c5d7ab0f23a17f778 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Tue, 29 Nov 2022 15:20:29 +0100 Subject: scale background images --- app/src/normal/res/layout-port/f_eip.xml | 10 ++++++---- app/src/normal/res/layout/f_eip.xml | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/layout-port/f_eip.xml b/app/src/normal/res/layout-port/f_eip.xml index c068df66..b17e300c 100644 --- a/app/src/normal/res/layout-port/f_eip.xml +++ b/app/src/normal/res/layout-port/f_eip.xml @@ -62,10 +62,12 @@ android:layout_width="match_parent" android:layout_height="match_parent" app:srcCompat="@drawable/bg_red" - android:layout_marginTop="-100dp" - android:layout_marginRight="-100dp" - android:layout_marginBottom="-100dp" - android:layout_marginLeft="-100dp" + android:scaleType="fitXY" + android:layout_marginTop="-300dp" + android:layout_marginBottom="-300dp" + android:layout_marginLeft="-300dp" + android:layout_marginRight="-300dp" + /> diff --git a/app/src/normal/res/layout/f_eip.xml b/app/src/normal/res/layout/f_eip.xml index e1ea927d..cd636b25 100644 --- a/app/src/normal/res/layout/f_eip.xml +++ b/app/src/normal/res/layout/f_eip.xml @@ -71,7 +71,10 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="fitXY" - android:layout_margin="-100dp" + android:layout_marginLeft="-300dp" + android:layout_marginRight="-300dp" + android:layout_marginTop="-300dp" + android:layout_marginBottom="-300dp" app:srcCompat="@drawable/bg_red" /> -- cgit v1.2.3 From 4f88dccaef982321e13856b3255534a6d260b8d2 Mon Sep 17 00:00:00 2001 From: cyberta Date: Tue, 29 Nov 2022 15:44:42 +0100 Subject: new Bitmask EipFragment layout for xlarge screens, delete unused background drawable, for now we use scaled png images --- app/src/normal/res/drawable/background_red.xml | 26 ------ app/src/normal/res/layout-xlarge-port/f_eip.xml | 95 +++++++++++++++------- app/src/normal/res/layout-xlarge/f_eip.xml | 103 +++++++++++++++--------- 3 files changed, 134 insertions(+), 90 deletions(-) delete mode 100644 app/src/normal/res/drawable/background_red.xml (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/drawable/background_red.xml b/app/src/normal/res/drawable/background_red.xml deleted file mode 100644 index 0189357c..00000000 --- a/app/src/normal/res/drawable/background_red.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/normal/res/layout-xlarge-port/f_eip.xml b/app/src/normal/res/layout-xlarge-port/f_eip.xml index c3d3fd36..26a90403 100644 --- a/app/src/normal/res/layout-xlarge-port/f_eip.xml +++ b/app/src/normal/res/layout-xlarge-port/f_eip.xml @@ -7,79 +7,97 @@ android:id="@+id/eipServiceFragment" > + + + app:layout_constraintGuide_percent="0.025" + /> + + + + + android:layout_marginTop="-300dp" + android:layout_marginBottom="-300dp" + android:layout_marginLeft="-300dp" + android:layout_marginRight="-300dp" + + /> - @@ -91,18 +109,40 @@ app:layout_constraintTop_toBottomOf="@id/main_description" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintBottom_toTopOf="@+id/gateway_location_button" android:padding="@dimen/activity_margin" android:textAppearance="@android:style/TextAppearance.DeviceDefault.Large" android:textStyle="bold" android:textColor="@color/colorEipFragmentFont" app:layout_constraintDimensionRatio="1:1" - tools:text="A LONG TEXT WITH SEVERAL THINGS BLABLkk" + tools:text="A LONG TEXT WITH SEVERAL THINGS BLABLkk \n kdjfkj \n kjdfkjdf" android:gravity="center" android:maxLines="2" android:ellipsize="end" /> + + + + diff --git a/app/src/normal/res/layout-xlarge/f_eip.xml b/app/src/normal/res/layout-xlarge/f_eip.xml index 4042933e..e1ecf321 100644 --- a/app/src/normal/res/layout-xlarge/f_eip.xml +++ b/app/src/normal/res/layout-xlarge/f_eip.xml @@ -5,20 +5,20 @@ --> + + + app:layout_constraintGuide_percent="0.3" /> + + + + + app:layout_constraintGuide_percent="0.7" /> - + android:layout_marginLeft="-300dp" + android:layout_marginRight="-300dp" + android:layout_marginTop="-300dp" + android:layout_marginBottom="-300dp" + app:srcCompat="@drawable/bg_red" /> - + + + + -- cgit v1.2.3 From 86ec8d8700a4bb9e0cec123e49ce408c46869f0e Mon Sep 17 00:00:00 2001 From: cyberta Date: Tue, 29 Nov 2022 23:48:37 +0100 Subject: rename progress animation image, fix missing resource in custom branded builds --- app/src/normal/res/drawable/rainbow_circle.xml | 103 --------------------- .../normal/res/drawable/rotate_progress_image.xml | 103 +++++++++++++++++++++ 2 files changed, 103 insertions(+), 103 deletions(-) delete mode 100644 app/src/normal/res/drawable/rainbow_circle.xml create mode 100644 app/src/normal/res/drawable/rotate_progress_image.xml (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/drawable/rainbow_circle.xml b/app/src/normal/res/drawable/rainbow_circle.xml deleted file mode 100644 index 44a35ba9..00000000 --- a/app/src/normal/res/drawable/rainbow_circle.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/normal/res/drawable/rotate_progress_image.xml b/app/src/normal/res/drawable/rotate_progress_image.xml new file mode 100644 index 00000000..44a35ba9 --- /dev/null +++ b/app/src/normal/res/drawable/rotate_progress_image.xml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3 From a4fca14a9a1c33fc81c4687113e0751bc0859857 Mon Sep 17 00:00:00 2001 From: cyberta Date: Wed, 30 Nov 2022 01:07:48 +0100 Subject: delete unused color drawable --- app/src/normal/res/color/button_tint_color.xml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 app/src/normal/res/color/button_tint_color.xml (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/color/button_tint_color.xml b/app/src/normal/res/color/button_tint_color.xml deleted file mode 100644 index f15e571d..00000000 --- a/app/src/normal/res/color/button_tint_color.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file -- cgit v1.2.3 From da824fa125a5583d07e8ac2f6585459956d87ac1 Mon Sep 17 00:00:00 2001 From: cyberta Date: Wed, 30 Nov 2022 01:37:33 +0100 Subject: rename drawables and colors according to the state they're representing --- .../res/drawable/cust_button_primary_rect.xml | 79 ---------------------- app/src/normal/res/layout-port/f_eip.xml | 2 +- app/src/normal/res/layout-xlarge-port/f_eip.xml | 2 +- app/src/normal/res/layout-xlarge/f_eip.xml | 2 +- app/src/normal/res/layout/f_eip.xml | 2 +- app/src/normal/res/layout/v_location_button.xml | 2 +- 6 files changed, 5 insertions(+), 84 deletions(-) delete mode 100644 app/src/normal/res/drawable/cust_button_primary_rect.xml (limited to 'app/src/normal/res') diff --git a/app/src/normal/res/drawable/cust_button_primary_rect.xml b/app/src/normal/res/drawable/cust_button_primary_rect.xml deleted file mode 100644 index 74ddccb0..00000000 --- a/app/src/normal/res/drawable/cust_button_primary_rect.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/normal/res/layout-port/f_eip.xml b/app/src/normal/res/layout-port/f_eip.xml index b17e300c..eed5fde6 100644 --- a/app/src/normal/res/layout-port/f_eip.xml +++ b/app/src/normal/res/layout-port/f_eip.xml @@ -61,7 +61,7 @@ android:id="@+id/background" android:layout_width="match_parent" android:layout_height="match_parent" - app:srcCompat="@drawable/bg_red" + app:srcCompat="@drawable/bg_disconnected" android:scaleType="fitXY" android:layout_marginTop="-300dp" android:layout_marginBottom="-300dp" diff --git a/app/src/normal/res/layout-xlarge-port/f_eip.xml b/app/src/normal/res/layout-xlarge-port/f_eip.xml index 26a90403..ae548c82 100644 --- a/app/src/normal/res/layout-xlarge-port/f_eip.xml +++ b/app/src/normal/res/layout-xlarge-port/f_eip.xml @@ -69,7 +69,7 @@ android:id="@+id/background" android:layout_width="match_parent" android:layout_height="match_parent" - app:srcCompat="@drawable/bg_red" + app:srcCompat="@drawable/bg_disconnected" android:scaleType="fitXY" android:layout_marginTop="-300dp" android:layout_marginBottom="-300dp" diff --git a/app/src/normal/res/layout-xlarge/f_eip.xml b/app/src/normal/res/layout-xlarge/f_eip.xml index e1ecf321..a4d94394 100644 --- a/app/src/normal/res/layout-xlarge/f_eip.xml +++ b/app/src/normal/res/layout-xlarge/f_eip.xml @@ -69,7 +69,7 @@ android:layout_marginRight="-300dp" android:layout_marginTop="-300dp" android:layout_marginBottom="-300dp" - app:srcCompat="@drawable/bg_red" /> + app:srcCompat="@drawable/bg_disconnected" /> + app:srcCompat="@drawable/bg_disconnected" />