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

193 lines
8.7 KiB
XML

<?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">
<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:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical"
app:layout_constraintTop_toBottomOf="@+id/title_bar">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
app:srcCompat ="@drawable/ic_welcome_to_dashpay" />
<TextView
style="@style/Headline5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="30dp"
android:gravity="center_horizontal"
android:text="@string/welcome_to_dash_pay"
android:textAlignment="gravity" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/faucet_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="15dp"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true">
<ImageView
android:id="@+id/create_a_username_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/ic_create_a_username"
app:layout_constraintEnd_toStartOf="@id/create_a_username_title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/create_a_username_title" />
<TextView
android:id="@+id/create_a_username_title"
style="@style/Subtitle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="63dp"
android:layout_marginTop="14dp"
android:text="@string/create_a_username"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/create_a_username_subtitle"
style="@style/Caption.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="@string/pay_to_usernames"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/create_a_username_title"
app:layout_constraintTop_toBottomOf="@+id/create_a_username_title" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/add_your_friends_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="10dp"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true">
<ImageView
android:id="@+id/add_your_friends_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat ="@drawable/ic_add_your_friends"
app:layout_constraintEnd_toStartOf="@id/add_your_friends_title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/add_your_friends_title" />
<TextView
android:id="@+id/add_your_friends_title"
style="@style/Subtitle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="63dp"
android:layout_marginTop="14dp"
android:text="@string/add_your_friends_family"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/add_your_friends_subtitle"
style="@style/Caption.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="@string/invite_your_family"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/add_your_friends_title"
app:layout_constraintTop_toBottomOf="@+id/add_your_friends_title" />
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/personalise_profile_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="20dp"
android:layout_marginTop="10dp"
android:background="?attr/selectableItemBackground"
android:clickable="true"
android:focusable="true">
<ImageView
android:id="@+id/personalise_profile_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat ="@drawable/ic_personalise_profile"
app:layout_constraintEnd_toStartOf="@id/personalise_profile_title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/personalise_profile_title" />
<TextView
android:id="@+id/personalise_profile_title"
style="@style/Subtitle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="63dp"
android:layout_marginTop="14dp"
android:text="@string/personalise_profile"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/personalise_profile_subtitle"
style="@style/Caption.Secondary"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="@string/upload_your_picture"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/personalise_profile_title"
app:layout_constraintTop_toBottomOf="@+id/personalise_profile_title" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>
<TextView
android:id="@+id/balance_requirement_disclaimer"
style="@style/Overline"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="12dp"
tools:text="@string/welcome_request_username_min_balance_disclaimer_all"
android:visibility="gone"
android:gravity="center_horizontal"
android:textAlignment="gravity"
android:maxLines="2"
app:layout_constraintBottom_toTopOf="@id/welcome_dashpay_continue_btn"
app:layout_constraintEnd_toEndOf="@id/welcome_dashpay_continue_btn"
app:layout_constraintStart_toStartOf="@id/welcome_dashpay_continue_btn"
tools:visibility="visible" />
<TextView
android:id="@+id/welcome_dashpay_continue_btn"
style="@style/Button.Primary.Large.Blue"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="15dp"
android:layout_marginHorizontal="15dp"
android:text="@string/button_continue"
/>
</androidx.constraintlayout.widget.ConstraintLayout>