* Tweak primary text color and action bar background color * Tweak chip selector colors * Optimize text color attributes * Network selector icon size * Tweak Assets text view * Apply new Wallet background color * Tweak Wallet background color and toolbar background color * Add divider lines below toolbar and above navigation bar * Tweak bottom navigation view style and minor improvements * Apply code formatting * Remove duplicated style
182 lines
8.1 KiB
XML
182 lines
8.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (c) 2023 The Brave Authors. All rights reserved.
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
-->
|
|
<LinearLayout 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/wallet_bg"
|
|
android:orientation="vertical"
|
|
tools:context=".browser.crypto_wallet.fragments.dapps.SignMessageFragment">
|
|
|
|
<TextView
|
|
android:id="@+id/frag_siwe_tv_title"
|
|
style="@style/BraveWalletTextViewTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginTop="12dp"
|
|
android:gravity="center"
|
|
android:text="@string/brave_wallet_sign_in_with_brave_wallet"
|
|
android:textSize="20sp" />
|
|
|
|
<View
|
|
android:id="@+id/frag_siwe_div1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="12dp"
|
|
android:background="@color/wallet_edittext_outline_color"
|
|
app:layout_constraintTop_toBottomOf="@id/frag_siwe_tv_title" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:padding="20dp">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/frag_siwe_fav_container"
|
|
android:layout_width="60dp"
|
|
android:layout_height="60dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:elevation="12dp"
|
|
app:cardCornerRadius="8dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:strokeColor="@color/brave_white"
|
|
app:strokeWidth="1dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/frag_siwe_iv_fav"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignStart="@+id/cv_dapps_image_container"
|
|
android:layout_alignBottom="@+id/cv_dapps_image_container"
|
|
android:layout_centerHorizontal="true"
|
|
android:contentDescription="@string/accessibility_wallet_dapp_panel_account"
|
|
app:cardBackgroundColor="@android:color/transparent"
|
|
tools:srcCompat="@drawable/ic_brave_logo" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/frag_siwe_cv_fav_nw_container"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_centerHorizontal="true"
|
|
android:elevation="12dp"
|
|
android:translationZ="1dp"
|
|
android:visibility="gone"
|
|
app:cardCornerRadius="8dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/frag_siwe_fav_container"
|
|
app:layout_constraintEnd_toEndOf="@id/frag_siwe_fav_container"
|
|
app:strokeColor="@color/brave_white"
|
|
app:strokeWidth="1dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/frag_siwe_iv_fav_nw_icon"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:background="@drawable/eth"
|
|
android:contentDescription="@null" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<TextView
|
|
android:id="@+id/frag_siwe_tv_origin"
|
|
style="@style/BraveWalletTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginVertical="4dp"
|
|
android:gravity="center"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/frag_siwe_fav_container" />
|
|
|
|
<TextView
|
|
android:id="@+id/frag_siwe_tv_url"
|
|
style="@style/BraveWalletTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginVertical="4dp"
|
|
android:gravity="center"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/frag_siwe_tv_origin" />
|
|
|
|
<TextView
|
|
android:id="@+id/frag_siwe_msg_tv_network_name"
|
|
style="@style/BraveWalletTextView"
|
|
android:layout_width="match_parent"
|
|
android:layout_marginVertical="4dp"
|
|
android:gravity="center"
|
|
app:layout_constraintBottom_toTopOf="@id/view_tab_line"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/frag_siwe_tv_url" />
|
|
|
|
<View
|
|
android:id="@+id/view_tab_line"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginTop="6dp"
|
|
android:background="@color/wallet_edittext_outline_color"
|
|
app:layout_constraintBottom_toTopOf="@id/frag_siwe_rv_container"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/frag_siwe_msg_tv_network_name" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/frag_siwe_rv_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginVertical="12dp"
|
|
android:elevation="12dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:layout_constraintBottom_toTopOf="@id/approve_tx_bottom_sheet_action"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/view_tab_line">
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/frag_siwe_rv"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/brave_wallet_dn_highlight_bg_color"
|
|
android:elevation="12dp"
|
|
android:padding="16dp"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/approve_tx_bottom_sheet_action"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="12dp"
|
|
android:orientation="horizontal"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
|
android:id="@+id/frag_siwe_msg_btn_cancel"
|
|
style="@style/BraveWalletButtonHollow"
|
|
android:layout_gravity="start"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_weight="1"
|
|
android:padding="0dp"
|
|
android:text="@string/brave_cancel"
|
|
android:textSize="16sp"
|
|
tools:ignore="DuplicateSpeakableTextCheck" />
|
|
|
|
<androidx.appcompat.widget.AppCompatButton
|
|
android:id="@+id/frag_siwe_msg_btn_sign"
|
|
style="@style/BraveWalletButton"
|
|
android:layout_gravity="end"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:layout_weight="1"
|
|
android:text="@string/brave_wallet_sign_message_positive_button_action"
|
|
app:drawableTint="@color/brave_white" />
|
|
</LinearLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|