107 lines
3.9 KiB
XML
107 lines
3.9 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/donate_layout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
android:padding="24dp">
|
||
|
|
||
|
<!-- Intro section -->
|
||
|
<TextView
|
||
|
android:id="@+id/titleText"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="Support Pulse Development 💖"
|
||
|
android:textSize="20sp"
|
||
|
android:textStyle="bold"
|
||
|
android:layout_marginBottom="8dp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/descText"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="Pulse is free and open-source. You can support future development through Ko-fi. As a thank-you, donors get special animation effects!"
|
||
|
android:textSize="16sp"
|
||
|
android:layout_marginBottom="12dp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/tokenDisplay"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text=""
|
||
|
android:textSize="14sp"
|
||
|
android:textColor="@android:color/darker_gray"
|
||
|
android:layout_marginBottom="12dp"
|
||
|
android:clickable="true"
|
||
|
android:focusable="true" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/kofiButton"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="Donate via Ko-fi 💙"
|
||
|
android:layout_marginBottom="12dp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/postDonatePrompt"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="Already donated? Tap below to activate your token."
|
||
|
android:textSize="16sp"
|
||
|
android:layout_marginTop="24dp"
|
||
|
android:layout_marginBottom="8dp" />
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/openTokenSection"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="I have a token"
|
||
|
android:layout_marginBottom="16dp" />
|
||
|
|
||
|
<!-- Token activation section (initially hidden) -->
|
||
|
<LinearLayout
|
||
|
android:id="@+id/tokenSection"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical"
|
||
|
android:visibility="gone">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/instruction"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="Enter your Ko-fi token:"
|
||
|
android:textSize="16sp"
|
||
|
android:layout_marginBottom="8dp" />
|
||
|
|
||
|
<EditText
|
||
|
android:id="@+id/tokenInput"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:hint="token:abcd1234efgh5678"
|
||
|
android:inputType="text"
|
||
|
android:maxLength="32"
|
||
|
android:layout_marginBottom="12dp"/>
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/verifyButton"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="Activate Token" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/resultText"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text=""
|
||
|
android:layout_marginTop="16dp"
|
||
|
android:textSize="16sp" />
|
||
|
</LinearLayout>
|
||
|
|
||
|
</LinearLayout>
|
||
|
</ScrollView>
|