Files
AndroidJava/dash-wallet/wallet/res/layout/fragment_request_username.xml
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

287 lines
12 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_secondary"
tools:context="de.schildbach.wallet.ui.username.voting.RequestUsernameFragment">
<androidx.appcompat.widget.Toolbar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_constraintTop_toTopOf="parent"
app:navigationIcon="@drawable/ic_arrow_back" />
<LinearLayout
android:id="@+id/top_stack"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginHorizontal="15dp"
android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@+id/title_bar">
<TextView
style="@style/Headline4"
android:background="@color/background_secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/request_your_username"
android:textAlignment="gravity" />
<TextView
style="@style/Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/request_your_hint"
android:textAlignment="gravity" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="horizontal">
<!-- <ImageView-->
<!-- android:id="@+id/create_a_username_icon"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- app:layout_constraintEnd_toStartOf="@id/create_a_username_title"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="@+id/create_a_username_title"-->
<!-- app:srcCompat="@drawable/ic_calendar" />-->
<!-- <TextView-->
<!-- android:id="@+id/voting_range_label"-->
<!-- style="@style/Caption.SemiBold"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginStart="7dp"-->
<!-- android:includeFontPadding="false"-->
<!-- android:text="@string/voting"-->
<!-- android:textAlignment="gravity" />-->
<!-- <TextView-->
<!-- android:id="@+id/voting_range"-->
<!-- style="@style/Caption"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:includeFontPadding="false"-->
<!-- android:maxLines="1"-->
<!-- android:textAlignment="gravity"-->
<!-- tools:text=" 1 Mar 15 Mar" />-->
</LinearLayout>
<org.dash.wallet.common.ui.text.InputWrapper
android:id="@+id/input_wrapper"
android:layout_width="match_parent"
app:endIconDrawable="@drawable/ic_clear_input"
android:layout_height="wrap_content"
android:layout_marginTop="15dp"
android:minHeight="72dp"
android:background="@drawable/rounded_background"
android:theme="@style/SecondaryBackground"
android:hint="@string/username">
<EditText
android:id="@+id/username_input"
style="@style/Body2"
android:maxLines="1"
tools:visibility="invisible"
android:layout_marginEnd="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:imeOptions="actionNext" />
</org.dash.wallet.common.ui.text.InputWrapper>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<ImageView
android:id="@+id/check_length"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginEnd="12dp"
android:src="@drawable/ic_check_circle_green"
/>
<TextView
style="@style/Overline.Medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/request_username_length_requirement"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<ImageView
android:id="@+id/check_letters"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginEnd="12dp"
android:src="@drawable/ic_check_circle_green"
/>
<TextView
style="@style/Overline.Medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/request_username_character_requirement"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/wallet_balance_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<ImageView
android:id="@+id/check_balance"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginEnd="12dp"
android:src="@drawable/ic_error_circle"
/>
<TextView
style="@style/Overline.Medium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/request_username_balance_requirement"
android:maxLines="2"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/username_available_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<ImageView
android:id="@+id/check_available"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginEnd="12dp"
android:src="@drawable/ic_check_circle_green"
/>
<TextView
style="@style/Overline.Medium"
android:id="@+id/username_available_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:text="Username is available"
/>
</LinearLayout>
<!-- <LinearLayout-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content">-->
<!-- <CheckBox-->
<!-- android:id="@+id/check_blocked"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- />-->
<!-- <TextView-->
<!-- style="@style/Overline.Medium"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="Username is blocked"-->
<!-- />-->
<!-- </LinearLayout>-->
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp">
<ProgressBar
android:id="@+id/voting_period_progress"
android:layout_width="22dp"
android:layout_height="22dp"
android:visibility="gone" />
<LinearLayout
android:id="@+id/voting_period_container"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/check_voting_period"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginEnd="12dp"
android:src="@drawable/ic_warning_triangle"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
style="@style/Overline.Medium"
android:id="@+id/voting_period"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:text="The Dash network will vote on this username. We will notify you of the results on March 14, 2024."
/>
<TextView
style="@style/Overline.Medium.Blue"
android:id="@+id/username_voting_info_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/request_username_username_voting_message"
/>
</LinearLayout>
</LinearLayout>
</FrameLayout>
<!-- <TextView-->
<!-- android:id="@+id/username_requested"-->
<!-- style="@style/Body2"-->
<!-- android:visibility="gone"-->
<!-- tools:visibility="visible"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginTop="5dp"-->
<!-- android:text="@string/this_username_has_already_been_requested"-->
<!-- android:textAlignment="gravity" />-->
</LinearLayout>
<Button
android:id="@+id/request_username_button"
style="@style/Button.Primary.Large.Blue"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_marginHorizontal="15dp"
android:layout_marginBottom="25dp"
android:enabled="false"
android:text="@string/request_username"
app:layout_constraintBottom_toBottomOf="parent" />
<!-- <TextView-->
<!-- android:id="@+id/balance_requirement_disclaimer"-->
<!-- style="@style/Overline"-->
<!-- android:layout_width="0dp"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="12dp"-->
<!-- android:text="@string/request_username_min_balance_disclaimer"-->
<!-- android:visibility="gone"-->
<!-- android:gravity="center_horizontal"-->
<!-- android:textAlignment="gravity"-->
<!-- app:layout_constraintBottom_toTopOf="@id/request_username_button"-->
<!-- app:layout_constraintEnd_toEndOf="@id/request_username_button"-->
<!-- app:layout_constraintStart_toStartOf="@id/request_username_button"-->
<!-- tools:visibility="visible" />-->
</androidx.constraintlayout.widget.ConstraintLayout>