JunZhang
5 years ago
committed by
GitHub
15 changed files with 280 additions and 40 deletions
@ -0,0 +1,145 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?><!-- |
||||
|
~ Copyright (c) 2020 Cobo |
||||
|
~ |
||||
|
~ 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 |
||||
|
~ in the file COPYING. If not, see <http://www.gnu.org/licenses/>. |
||||
|
--> |
||||
|
|
||||
|
<layout 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"> |
||||
|
|
||||
|
<data> |
||||
|
|
||||
|
</data> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent" |
||||
|
android:gravity="center_horizontal" |
||||
|
android:orientation="vertical"> |
||||
|
|
||||
|
<androidx.appcompat.widget.Toolbar |
||||
|
android:id="@+id/toolbar" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="?attr/actionBarSize" |
||||
|
android:background="?attr/colorPrimary" |
||||
|
app:navigationIcon="@drawable/arrow_left" |
||||
|
app:popupTheme="@style/AppTheme.PopupOverlay"> |
||||
|
|
||||
|
<TextView |
||||
|
android:id="@+id/toolbar_title" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_gravity="center" |
||||
|
android:layout_marginEnd="20dp" |
||||
|
android:ellipsize="middle" |
||||
|
android:singleLine="true" |
||||
|
android:text="@string/export_wallet" |
||||
|
android:textColor="@android:color/white" |
||||
|
android:textSize="15sp" /> |
||||
|
</androidx.appcompat.widget.Toolbar> |
||||
|
|
||||
|
<include layout="@layout/divider" /> |
||||
|
|
||||
|
<ScrollView |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent"> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:gravity="center_horizontal" |
||||
|
android:orientation="vertical"> |
||||
|
|
||||
|
<LinearLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginTop="10dp" |
||||
|
android:gravity="center"> |
||||
|
|
||||
|
<TextView |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:gravity="center" |
||||
|
android:layout_marginHorizontal="16dp" |
||||
|
android:text="@string/scan_qrcode_with_generic_wallet" |
||||
|
android:textColor="@color/white" |
||||
|
android:textSize="15sp" |
||||
|
android:textStyle="bold" /> |
||||
|
|
||||
|
</LinearLayout> |
||||
|
|
||||
|
<com.cobo.cold.ui.views.qrcode.QrCodeView |
||||
|
android:id="@+id/qrcode" |
||||
|
android:layout_width="240dp" |
||||
|
android:layout_height="240dp" |
||||
|
android:layout_marginHorizontal="34dp" |
||||
|
android:layout_marginTop="16dp" |
||||
|
android:background="@color/white" |
||||
|
android:keepScreenOn="true" |
||||
|
android:padding="5dp"> |
||||
|
|
||||
|
<ImageView |
||||
|
android:id="@+id/img" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="match_parent" |
||||
|
android:visibility="visible" |
||||
|
tools:ignore="ContentDescription" /> |
||||
|
|
||||
|
<ProgressBar |
||||
|
android:id="@+id/progress" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_gravity="center" |
||||
|
android:visibility="visible" /> |
||||
|
</com.cobo.cold.ui.views.qrcode.QrCodeView> |
||||
|
|
||||
|
<com.cobo.cold.ui.views.SpanedTextView |
||||
|
android:id="@+id/export_to_sdcard" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_marginHorizontal="16dp" |
||||
|
android:layout_marginTop="10dp" |
||||
|
android:paddingVertical="10dp" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/generic_qrcode_hint" |
||||
|
android:textColor="@color/white" |
||||
|
android:textSize="12sp" /> |
||||
|
|
||||
|
|
||||
|
<androidx.legacy.widget.Space |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="0dp" |
||||
|
android:layout_weight="1" /> |
||||
|
|
||||
|
<Button |
||||
|
android:id="@+id/done" |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_marginHorizontal="16dp" |
||||
|
android:layout_marginTop="16dp" |
||||
|
style="@style/AcceptButton" |
||||
|
android:text="@string/complete"/> |
||||
|
<TextView |
||||
|
android:id="@+id/skip" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:layout_gravity="center" |
||||
|
android:padding="10dp" |
||||
|
android:textColor="@color/colorAccent" |
||||
|
android:gravity="center" |
||||
|
android:text="@string/skip_export"/> |
||||
|
</LinearLayout> |
||||
|
</ScrollView> |
||||
|
</LinearLayout> |
||||
|
</layout> |
Loading…
Reference in new issue