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

157 lines
6.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout 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:id="@+id/fragment_root"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="de.schildbach.wallet.ui.invite.InviteCreatedFragment">
<include
android:id="@+id/invitation_bitmap_template"
layout="@layout/invitation_bitmap_template"
android:visibility="invisible" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:animateLayoutChanges="true"
android:background="@color/background_primary"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/background_primary"
app:popupTheme="@style/ThemeOverlay.AppCompat.ActionBar"
app:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:titleTextColor="@color/dash_black">
<TextView
android:id="@+id/toolbar_title"
style="@style/Headline6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="@string/invitation_created_title" />
</androidx.appcompat.widget.Toolbar>
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:background="@drawable/round_corners_white_bg"
android:orientation="vertical"
android:padding="16dp">
<de.schildbach.wallet.ui.invite.InvitePreviewEnvelopeView
android:id="@+id/profile_picture_envelope"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_gravity="center_horizontal" />
<TextView
style="@style/Headline6.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:gravity="center_horizontal"
android:textAlignment="gravity"
android:text="@string/invitation_created_successfully" />
<Button
android:id="@+id/preview_button"
style="@style/Button.Tertiary.Blue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/invitation_created_preview" />
</LinearLayout>
<TextView
android:id="@+id/display_name_label"
style="@style/Body2.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="28dp"
android:text="@string/invitation_created_tag_title" />
<EditText
android:id="@+id/tag_edit"
style="@style/Subtitle1"
android:layout_width="match_parent"
android:layout_height="52dp"
android:layout_marginTop="12dp"
android:background="@drawable/round_corners_white_bg"
android:elevation="2dp"
android:hint="@string/invitation_created_tag"
android:inputType="textPersonName"
android:lines="1"
android:paddingLeft="20dp"
android:paddingRight="20dp"
tools:ignore="UnusedAttribute" />
<Button
android:id="@+id/copy_invitation_link"
style="@style/Button.Tertiary.Large.Blue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="16dp"
android:drawableStart="@drawable/ic_copy_invitation_link"
android:drawablePadding="16dp"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:text="@string/invitation_created_copy_link" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
tools:ignore="UselessLeaf" />
<Button
android:id="@+id/send_button"
style="@style/Button.Primary.Large.Blue"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:text="@string/invitation_created_send_invitation" />
<Button
android:id="@+id/maybe_later_button"
style="@style/Button.Tertiary.Large"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:text="@string/invitation_created_maybe_later" />
</LinearLayout>
</ScrollView>
</LinearLayout>
</FrameLayout>