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

113 lines
4.6 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="match_parent"
android:background="@color/background_primary"
android:fitsSystemWindows="true"
android:orientation="vertical"
tools:context="de.schildbach.wallet.ui.buy_sell.BuyAndSellIntegrationsFragment">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:navigationIcon="@drawable/ic_arrow_back"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/header"
style="@style/Headline3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:text="@string/menu_buy_and_sell_title"
app:layout_constraintTop_toBottomOf="@id/toolbar" />
<TextView
android:id="@+id/subtitle"
style="@style/Body2.Secondary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="15dp"
android:layout_marginTop="2dp"
android:text="@string/buy_and_sell_subtitle"
app:layout_constraintTop_toBottomOf="@id/header" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/dash_services_list"
android:layout_width="match_parent"
android:layout_height="0dp"
android:paddingHorizontal="15dp"
android:layout_marginTop="15dp"
android:clipToPadding="false"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:itemCount="3"
tools:listitem="@layout/item_service_list"
app:layout_constraintTop_toBottomOf="@id/subtitle"
app:layout_constraintBottom_toBottomOf="parent" />
<TextView
android:id="@+id/keys_missing_error"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="15dp"
android:layout_marginTop="15dp"
android:layout_marginEnd="15dp"
android:text="@string/services_portal_subtitle_error"
android:textColor="@color/dash_red"
android:textSize="12sp"
android:visibility="gone"
tools:visibility="visible"
app:layout_constraintTop_toBottomOf="@id/dash_services_list" />
<LinearLayout
android:id="@+id/no_network_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rounded_background"
android:theme="@style/NoNetworkBackground"
android:layout_gravity="center_horizontal|bottom"
android:paddingVertical="8dp"
android:paddingStart="10dp"
android:paddingEnd="15dp"
android:layout_marginBottom="15dp"
tools:background="@color/dash_black_0.9"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/ic_wifi_slash"
android:layout_gravity="center_vertical"/>
<TextView
style="@style/Caption.White"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/no_connection"
android:layout_marginStart="8dp" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>