Donations improvements
This commit is contained in:
13
mastodon/src/main/res/anim/fragment_enter.xml
Normal file
13
mastodon/src/main/res/anim/fragment_enter.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="300"
|
||||
android:interpolator="@interpolator/cubic_bezier_default"
|
||||
android:shareInterpolator="true"
|
||||
>
|
||||
<alpha
|
||||
android:fromAlpha="0"
|
||||
android:toAlpha="1" />
|
||||
<translate
|
||||
android:fromXDelta="@integer/hundred_dp"
|
||||
android:toXDelta="0"/>
|
||||
</set>
|
||||
13
mastodon/src/main/res/anim/fragment_exit.xml
Normal file
13
mastodon/src/main/res/anim/fragment_exit.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:duration="200"
|
||||
android:interpolator="@interpolator/cubic_bezier_default"
|
||||
android:shareInterpolator="true"
|
||||
>
|
||||
<alpha
|
||||
android:fromAlpha="1"
|
||||
android:toAlpha="0" />
|
||||
<translate
|
||||
android:fromXDelta="0"
|
||||
android:toXDelta="@integer/hundred_dp"/>
|
||||
</set>
|
||||
4
mastodon/src/main/res/anim/no_op_300ms.xml
Normal file
4
mastodon/src/main/res/anim/no_op_300ms.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="300">
|
||||
|
||||
</set>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 67 KiB |
9
mastodon/src/main/res/drawable/ic_campaign_20px.xml
Normal file
9
mastodon/src/main/res/drawable/ic_campaign_20px.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="20dp"
|
||||
android:height="20dp"
|
||||
android:viewportWidth="20"
|
||||
android:viewportHeight="20">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M15,10.875V9.125H18.333V10.875ZM16,16.667 L13.333,14.667 14.375,13.25 17.042,15.25ZM14.396,6.729 L13.333,5.333 16,3.333 17.062,4.729ZM4.167,15.833V12.5H3.417Q2.729,12.5 2.198,12.052Q1.667,11.604 1.667,10.917V9.083Q1.667,8.396 2.198,7.948Q2.729,7.5 3.417,7.5H6.667L10.833,5V15L6.667,12.5H5.917V15.833ZM11.708,12.792V7.208Q12.271,7.708 12.615,8.427Q12.958,9.146 12.958,10Q12.958,10.854 12.615,11.573Q12.271,12.292 11.708,12.792ZM3.417,9.25Q3.417,9.25 3.417,9.25Q3.417,9.25 3.417,9.25V10.75Q3.417,10.75 3.417,10.75Q3.417,10.75 3.417,10.75H7.208L9.083,11.917V8.083L7.208,9.25ZM6.25,10Q6.25,10 6.25,10Q6.25,10 6.25,10Q6.25,10 6.25,10Q6.25,10 6.25,10Z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<pathInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:controlX1="0.25" android:controlY1="0.1" android:controlX2="0.25" android:controlY2="1"/>
|
||||
83
mastodon/src/main/res/layout/sheet_donation_success.xml
Normal file
83
mastodon/src/main/res/layout/sheet_donation_success.xml
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<org.joinmastodon.android.ui.views.CustomScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:background="@drawable/bg_bottom_sheet"
|
||||
android:outlineProvider="background"
|
||||
android:elevation="1dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingHorizontal="16dp">
|
||||
|
||||
<View
|
||||
android:id="@+id/handle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="36dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="@drawable/bg_bottom_sheet_handle"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="@style/m3_headline_medium"
|
||||
android:textColor="?colorM3OnSurface"
|
||||
android:gravity="center"
|
||||
android:text="@string/donation_success_title"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:textAppearance="@style/m3_body_large"
|
||||
android:gravity="center"
|
||||
android:textColor="?colorM3OnSurfaceVariant"
|
||||
android:text="@string/donation_success_subtitle"/>
|
||||
|
||||
<org.joinmastodon.android.ui.views.FixedAspectRatioImageView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:src="@drawable/donation_successful_art"
|
||||
app:aspectRatio="1.777777"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/btn_share"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="16dp"
|
||||
style="@style/Widget.Mastodon.M3.Button.Filled">
|
||||
<TextView
|
||||
android:id="@+id/button_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:drawableStart="@drawable/ic_campaign_20px"
|
||||
style="@style/Widget.Mastodon.M3.Button.Filled"
|
||||
android:background="@null"
|
||||
android:padding="0dp"
|
||||
android:drawablePadding="8dp"
|
||||
android:drawableTint="@color/button_text_m3_filled"
|
||||
android:clickable="false"
|
||||
android:focusable="false"
|
||||
android:duplicateParentState="true"
|
||||
android:text="@string/donation_success_share"/>
|
||||
</FrameLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_done"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="16dp"
|
||||
style="@style/Widget.Mastodon.M3.Button.Outlined"
|
||||
android:text="@string/done"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</org.joinmastodon.android.ui.views.CustomScrollView>
|
||||
4
mastodon/src/main/res/values-hdpi/misc.xml
Normal file
4
mastodon/src/main/res/values-hdpi/misc.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="hundred_dp">150</integer>
|
||||
</resources>
|
||||
4
mastodon/src/main/res/values-tvdpi/misc.xml
Normal file
4
mastodon/src/main/res/values-tvdpi/misc.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="hundred_dp">133</integer>
|
||||
</resources>
|
||||
4
mastodon/src/main/res/values-xhdpi/misc.xml
Normal file
4
mastodon/src/main/res/values-xhdpi/misc.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="hundred_dp">200</integer>
|
||||
</resources>
|
||||
4
mastodon/src/main/res/values-xxhdpi/misc.xml
Normal file
4
mastodon/src/main/res/values-xxhdpi/misc.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="hundred_dp">300</integer>
|
||||
</resources>
|
||||
4
mastodon/src/main/res/values-xxxhdpi/misc.xml
Normal file
4
mastodon/src/main/res/values-xxxhdpi/misc.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="hundred_dp">400</integer>
|
||||
</resources>
|
||||
4
mastodon/src/main/res/values/misc.xml
Normal file
4
mastodon/src/main/res/values/misc.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<integer name="hundred_dp">100</integer>
|
||||
</resources>
|
||||
@@ -771,4 +771,7 @@
|
||||
<string name="donation_monthly">Monthly</string>
|
||||
<string name="donation_yearly">Yearly</string>
|
||||
<string name="currency">Currency</string>
|
||||
<string name="donation_success_share">Spread the word</string>
|
||||
<string name="donation_success_title">Thank you for your contribution!</string>
|
||||
<string name="donation_success_subtitle">You should receive an email confirming your donation soon.</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user