170 lines
7.1 KiB
XML
170 lines
7.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
~ Copyright 2022 Dash Core Group.
|
|
~
|
|
~ This program is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ This program is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
<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="wrap_content"
|
|
android:background="@color/background_primary"
|
|
android:orientation="vertical"
|
|
tools:context="org.dash.wallet.common.ui.dialogs.AdaptiveDialog"
|
|
tools:ignore="ContentDescription">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/uphold_row"
|
|
style="@style/ViewRaised"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="40dp"
|
|
android:layout_marginHorizontal="30dp"
|
|
android:padding="10dp"
|
|
android:background="@drawable/rounded_background"
|
|
android:theme="@style/SecondaryBackground"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/uphold_icon"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:src="@drawable/ic_uphold"
|
|
android:padding="4dp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/uphold_label"
|
|
style="@style/Overline.Medium"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/uphold_account"
|
|
android:layout_marginStart="10dp"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/uphold_icon" />
|
|
|
|
<ImageView
|
|
style="@style/NavigationArrowStyle"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/liquid_row"
|
|
style="@style/ViewRaised"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="30dp"
|
|
android:layout_marginTop="10dp"
|
|
android:padding="10dp"
|
|
android:alpha="0.9"
|
|
android:background="@drawable/rounded_background"
|
|
android:theme="@style/SecondaryBackground"
|
|
app:layout_constraintTop_toBottomOf="@+id/uphold_row">
|
|
|
|
<ImageView
|
|
android:id="@+id/liquid_icon"
|
|
android:layout_width="35dp"
|
|
android:layout_height="35dp"
|
|
android:src="@drawable/ic_liquid_saturated"
|
|
android:padding="8dp"
|
|
android:alpha="0.4"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/liquid_label"
|
|
style="@style/Overline.Medium"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/liquid"
|
|
android:layout_marginStart="10dp"
|
|
android:alpha="0.4"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/liquid_icon" />
|
|
|
|
<ImageView
|
|
style="@style/NavigationArrowStyle"
|
|
android:alpha="0.4"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:id="@+id/text_container"
|
|
style="@style/ViewRaised"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="20dp"
|
|
android:orientation="vertical"
|
|
android:layout_marginTop="40dp"
|
|
android:background="@color/background_secondary"
|
|
app:layout_constraintTop_toBottomOf="@id/liquid_row">
|
|
|
|
<View
|
|
android:id="@+id/divider"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="@color/divider_color"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/liquid_unavailable_title"
|
|
style="@style/Subtitle1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="30dp"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:gravity="center"
|
|
android:textAlignment="gravity"
|
|
android:text="@string/liquid_unavailable"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/liquid_unavailable_message"
|
|
style="@style/Body2.Secondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:layout_marginTop="6dp"
|
|
android:gravity="center"
|
|
android:textAlignment="gravity"
|
|
android:text="@string/liquid_unavailable_details"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="@id/set_auth_limit_label"
|
|
app:layout_constraintTop_toBottomOf="@id/set_auth_limit_label" />
|
|
|
|
<Button
|
|
android:id="@+id/dialog_positive_button"
|
|
style="@style/Button.Tertiary.Blue"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="20dp"
|
|
android:layout_marginTop="30dp"
|
|
android:text="@android:string/ok"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/change_withdrawal_limit_label" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |