diff options
Diffstat (limited to 'app/src/main/res/layout/activity_push_notification.xml')
-rw-r--r-- | app/src/main/res/layout/activity_push_notification.xml | 85 |
1 files changed, 38 insertions, 47 deletions
diff --git a/app/src/main/res/layout/activity_push_notification.xml b/app/src/main/res/layout/activity_push_notification.xml index eb14f38d1..21d543db3 100644 --- a/app/src/main/res/layout/activity_push_notification.xml +++ b/app/src/main/res/layout/activity_push_notification.xml @@ -1,47 +1,59 @@ <?xml version="1.0" encoding="utf-8"?> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" + android:orientation="vertical" tools:showIn="@layout/activity_push_notification"> - <LinearLayout - android:id="@+id/appBarLayout" + <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="vertical"> + android:layout_height="wrap_content"> - <com.google.android.material.appbar.AppBarLayout + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" android:layout_width="match_parent" - android:layout_height="wrap_content"> + android:layout_height="?android:actionBarSize" + app:navigationIcon="@drawable/ic_arrow_back_white_24dp" + app:title="@string/app_name" /> + </com.google.android.material.appbar.AppBarLayout> - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" - android:layout_width="match_parent" - android:layout_height="?android:actionBarSize" - app:navigationIcon="@drawable/ic_arrow_back_white_24dp" - app:title="@string/app_name" /> - </com.google.android.material.appbar.AppBarLayout> + <LinearLayout + android:id="@+id/progressWrapper" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center" + android:orientation="vertical" + android:padding="@dimen/spacer_2x"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="@dimen/spacer_2x" + android:text="@string/updating_card" + android:textAppearance="?attr/textAppearanceBody1" /> <ProgressBar android:id="@+id/progress" - style="@style/Widget.AppCompat.ProgressBar.Horizontal" + style="?android:attr/progressBarStyleHorizontal" + android:indeterminateTint="@color/defaultBrand" android:layout_width="match_parent" android:layout_height="wrap_content" android:indeterminate="true" /> </LinearLayout> <ScrollView + android:id="@+id/browserFallback" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_above="@+id/buttonBar" - android:layout_below="@id/appBarLayout" + android:visibility="gone" android:padding="@dimen/spacer_2x"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center" android:orientation="vertical"> <TextView @@ -60,35 +72,14 @@ tools:maxLength="200" tools:text="@tools:sample/lorem/random" tools:visibility="visible" /> + + <com.google.android.material.button.MaterialButton + android:id="@+id/submit" + style="@style/Widget.MaterialComponents.Button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/spacer_2x" + android:text="@string/open_in_browser" /> </LinearLayout> </ScrollView> - - <LinearLayout - android:id="@+id/buttonBar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_alignParentBottom="true" - android:orientation="horizontal" - android:padding="@dimen/spacer_2x" - android:weightSum="1.0"> - - <com.google.android.material.button.MaterialButton - android:id="@+id/cancel" - style="@style/Widget.MaterialComponents.Button.TextButton" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginEnd="@dimen/spacer_1x" - android:layout_weight=".5" - android:text="@string/simple_close" /> - - <com.google.android.material.button.MaterialButton - android:id="@+id/submit" - style="@style/Widget.MaterialComponents.Button" - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_marginStart="@dimen/spacer_1x" - android:layout_weight=".5" - android:enabled="false" - android:text="@string/updating_card" /> - </LinearLayout> -</RelativeLayout>
\ No newline at end of file +</LinearLayout>
\ No newline at end of file |