Pulse/app/src/main/res/layout/fragment_donate.xml

107 lines
3.8 KiB
XML
Raw Normal View History

2025-05-20 12:50:08 +02:00
<?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"
2025-05-20 14:31:24 +02:00
android:text="@string/donate_title"
2025-05-20 12:50:08 +02:00
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"
2025-05-20 14:31:24 +02:00
android:text="@string/donate_description"
2025-05-20 12:50:08 +02:00
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"
2025-05-20 14:31:24 +02:00
android:text="@string/donate_button"
2025-05-20 12:50:08 +02:00
android:layout_marginBottom="12dp" />
<TextView
android:id="@+id/postDonatePrompt"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-05-20 14:31:24 +02:00
android:text="@string/donate_post_prompt"
2025-05-20 12:50:08 +02:00
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"
2025-05-20 14:31:24 +02:00
android:text="@string/donate_have_token"
2025-05-20 12:50:08 +02:00
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"
2025-05-20 14:31:24 +02:00
android:text="@string/donate_token_instruction"
2025-05-20 12:50:08 +02:00
android:textSize="16sp"
android:layout_marginBottom="8dp" />
<EditText
android:id="@+id/tokenInput"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2025-05-20 14:31:24 +02:00
android:hint="@string/donate_token_hint"
2025-05-20 12:50:08 +02:00
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"
2025-05-20 14:31:24 +02:00
android:text="@string/donate_token_activate" />
2025-05-20 12:50:08 +02:00
<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>