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

155 lines
7.5 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:orientation="vertical"
tools:context="de.schildbach.wallet.ui.main.WalletFragment">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:id="@+id/home_content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="@color/background_primary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="ContentDescription">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/blue_background_color">
<com.google.android.material.appbar.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
app:expandedTitleGravity="top"
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/home_toolbar_height"
android:orientation="vertical">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/wallet_balance_fragment"
android:name="de.schildbach.wallet.ui.main.HeaderBalanceFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="60dp"
android:layout_gravity="center_horizontal"
tools:layout="@layout/header_balance_fragment" />
<FrameLayout
android:id="@+id/buttons_anchor"
android:layout_width="match_parent"
android:layout_height="0dp" />
<LinearLayout
android:id="@+id/sync_status_pane_parent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background_primary"
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingTop="40dp"
android:paddingEnd="16dp">
<include
android:id="@+id/sync_status_pane"
layout="@layout/sync_status_pane"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
<androidx.compose.ui.platform.ComposeView
android:id="@+id/compose_mixing_status_pane"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="visible"
tools:visibility="visible"
android:layout_marginBottom="10dp"
/>
<androidx.compose.ui.platform.ComposeView
android:id="@+id/info_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp" />
</LinearLayout>
</LinearLayout>
<androidx.appcompat.widget.Toolbar
android:id="@+id/home_toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/home_toolbar_height"
android:background="@color/blue_background_color"
android:clickable="true"
android:focusable="true"
app:contentInsetStart="0dp"
app:layout_collapseMode="pin">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/dashpay_user_avatar"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginStart="15dp"
android:padding="1dp"
android:visibility="gone"
android:layout_gravity="start|center_vertical"
android:background="@drawable/rounded_background"
android:theme="@style/ProfilePictureBorder"
tools:src="@drawable/user3"
tools:visibility="visible" />
<ImageView
android:id="@+id/dash_logo"
android:layout_width="wrap_content"
android:layout_height="25dp"
android:src="@drawable/ic_dash_logo_white"
android:layout_gravity="center" />
<ImageButton
android:id="@+id/notification_bell"
style="@style/Button.Primary.Small.Round"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="7dp"
android:visibility="gone"
android:layout_gravity="end|center_vertical"
app:srcCompat="@drawable/ic_notification_bell"
tools:visibility="visible" />
</FrameLayout>
</androidx.appcompat.widget.Toolbar>
</com.google.android.material.appbar.CollapsingToolbarLayout>
</com.google.android.material.appbar.AppBarLayout>
<androidx.compose.ui.platform.ComposeView
android:id="@+id/shortcuts_pane"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginEnd="16dp"
android:paddingHorizontal="2dp"
app:layout_anchor="@id/buttons_anchor"
app:layout_behavior="de.schildbach.wallet.ui.CollapsingImageBehavior" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/wallet_transactions_fragment"
android:name="de.schildbach.wallet.ui.main.WalletTransactionsFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:tag="wallet_transactions_fragment"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:layout="@layout/wallet_transactions_fragment" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</androidx.constraintlayout.widget.ConstraintLayout>