114 lines
4.1 KiB
XML
114 lines
4.1 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="@string/donate_title"
|
|
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="@string/donate_description"
|
|
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" />
|
|
|
|
<TextView
|
|
android:id="@+id/reminderText"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/donate_toast_reminder"
|
|
android:textSize="16sp"
|
|
android:layout_marginBottom="12dp" />
|
|
|
|
<Button
|
|
android:id="@+id/kofiButton"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/donate_button"
|
|
android:layout_marginBottom="12dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/postDonatePrompt"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/donate_post_prompt"
|
|
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="@string/donate_have_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="@string/donate_token_instruction"
|
|
android:textSize="16sp"
|
|
android:layout_marginBottom="8dp" />
|
|
|
|
<EditText
|
|
android:id="@+id/tokenInput"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:hint="@string/donate_token_hint"
|
|
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="@string/donate_token_activate" />
|
|
|
|
<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>
|