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

112 lines
4.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:id="@+id/main_pane"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="16dp"
android:background="@drawable/appwidget_dark_bg_clickable"
android:divider="@drawable/appwidget_divider"
android:orientation="horizontal"
android:showDividers="middle">
<LinearLayout
android:id="@+id/widget_button_balance"
android:layout_width="0px"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="@drawable/appwidget_button_left"
android:focusable="true"
android:gravity="start"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/widget_wallet_prefix"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:src="@drawable/currency_symbol_dash" />
<TextView
android:id="@+id/widget_wallet_balance_btc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="4sp"
android:ellipsize="none"
android:fadingEdge="horizontal"
android:fadingEdgeLength="12dp"
android:singleLine="true"
android:textColor="@color/fg_network_significant"
android:textSize="@dimen/font_size_large" />
</LinearLayout>
<TextView
android:id="@+id/widget_wallet_balance_local"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:ellipsize="none"
android:fadingEdge="horizontal"
android:fadingEdgeLength="12dp"
android:singleLine="true"
android:textColor="@color/fg_network_insignificant"
android:textSize="@dimen/font_size_normal" />
</LinearLayout>
<ImageButton
android:id="@+id/widget_button_request"
android:layout_width="64dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:background="@drawable/appwidget_button_center"
android:contentDescription="@string/lock_action_quick_receive"
app:srcCompat="@drawable/ic_lock_quick_receive"
tools:ignore="VectorDrawableCompat" />
<ImageButton
android:id="@+id/widget_button_send_qr"
android:layout_width="64dp"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:background="@drawable/appwidget_button_right"
android:contentDescription="@string/lock_action_scan_to_pay"
app:srcCompat="@drawable/ic_lock_scan_to_pay"
tools:ignore="VectorDrawableCompat" />
</LinearLayout>
<TextView
android:id="@+id/wallet_not_initialized_message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="16dp"
android:background="@drawable/appwidget_dark_bg_clickable"
android:gravity="center"
android:padding="16dp"
app:srcCompat="@drawable/splash_activity_slogan"
android:text="@string/appwidget_wallet_not_ready"
android:textColor="@color/dash_white"
android:textSize="@dimen/font_size_normal"
tools:visibility="gone" />
<ImageView
android:id="@+id/widget_app_icon"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_gravity="center_horizontal"
android:contentDescription="@string/app_name"
app:srcCompat="@mipmap/ic_launcher" />
</FrameLayout>