PlayerAndroid/app/src/main/res/layout/activity_donation.xml

141 lines
5.9 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-08-30 09:29:30 +00:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-27 13:07:33 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent">
2018-08-30 09:29:30 +00:00
<com.google.android.material.appbar.AppBarLayout
2018-12-06 10:23:03 +00:00
android:id="@+id/appBarLayout"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-08-08 08:03:38 +00:00
android:layout_height="wrap_content"
android:elevation="0dp"
app:elevation="0dp">
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<com.google.android.material.appbar.CollapsingToolbarLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-08-08 08:03:38 +00:00
android:layout_height="wrap_content"
app:titleEnabled="false">
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.Toolbar
2018-07-27 13:07:33 +00:00
android:id="@+id/toolbar"
2018-12-04 15:34:26 +00:00
style="@style/Toolbar"
2018-07-27 13:07:33 +00:00
app:layout_collapseMode="pin"
2018-08-08 08:03:38 +00:00
app:title=""
tools:ignore="UnusedAttribute">
<TextView
2018-12-06 10:23:03 +00:00
android:id="@+id/bannerTitle"
2018-08-22 17:54:07 +00:00
style="@style/BigTitleTextAppearance"
android:text="@string/support_development" />
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.CollapsingToolbarLayout>
2018-08-08 08:03:38 +00:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?dividerColor" />
2018-08-30 09:29:30 +00:00
</com.google.android.material.appbar.AppBarLayout>
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<androidx.core.widget.NestedScrollView
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatTextView
2018-07-27 13:07:33 +00:00
android:id="@+id/donation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="16dp"
android:text="@string/donation_header"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
android:textColor="?attr/colorAccent" />
<LinearLayout
2018-12-06 10:23:03 +00:00
android:id="@+id/progressContainer"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end|center_vertical"
android:orientation="horizontal"
2018-11-05 13:53:07 +00:00
android:padding="12dp">
2018-07-27 13:07:33 +00:00
<ProgressBar
android:id="@+id/progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatTextView
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="start"
android:paddingLeft="16dp"
android:text="@string/loading_products"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
tools:ignore="RtlHardcoded,RtlSymmetry" />
</LinearLayout>
2018-08-30 09:29:30 +00:00
<androidx.recyclerview.widget.RecyclerView
2018-12-06 10:23:03 +00:00
android:id="@+id/recyclerView"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="6dp"
2018-08-08 08:03:38 +00:00
android:paddingEnd="6dp"
2018-07-27 13:07:33 +00:00
android:scrollbarStyle="outsideOverlay" />
2018-11-05 13:53:07 +00:00
<com.google.android.material.card.MaterialCardView
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-11-05 13:53:07 +00:00
app:cardCornerRadius="8dp"
2018-07-27 13:07:33 +00:00
app:cardUseCompatPadding="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:orientation="vertical">
2018-09-23 10:04:43 +00:00
<code.name.monkey.appthemehelper.common.views.ATEPrimaryTextView
2018-11-05 13:53:07 +00:00
style="@style/SubTitleTextAppearance"
2018-07-27 13:07:33 +00:00
android:text="@string/paypal"
tools:ignore="MissingPrefix" />
2018-09-23 10:04:43 +00:00
<code.name.monkey.appthemehelper.common.views.ATESecondaryTextView
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="16dp"
2018-08-08 08:03:38 +00:00
android:paddingEnd="16dp"
2018-07-27 13:07:33 +00:00
android:text="@string/paypal_summary"
android:textColor="@color/md_white_1000" />
2018-08-30 09:29:30 +00:00
<com.google.android.material.button.MaterialButton
2018-07-27 13:07:33 +00:00
android:id="@+id/donate"
2018-08-30 09:29:30 +00:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-07-27 13:07:33 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
2018-11-05 13:53:07 +00:00
android:layout_margin="8dp"
android:text="@string/donate"
android:textAllCaps="false" />
2018-07-27 13:07:33 +00:00
</LinearLayout>
2018-11-05 13:53:07 +00:00
</com.google.android.material.card.MaterialCardView>
2018-07-27 13:07:33 +00:00
</LinearLayout>
2018-08-30 09:29:30 +00:00
</androidx.core.widget.NestedScrollView>
2018-11-28 05:37:10 +00:00
<Button
android:id="@+id/google_pay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:text="Google Pay"
android:visibility="gone" />
2018-08-30 09:29:30 +00:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>