|
|
|
<?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">
|
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="query"
|
|
|
|
type="androidx.databinding.ObservableField<String>" />
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="coinViewModel"
|
|
|
|
type="com.cobo.cold.viewmodel.CoinViewModel" />
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusableInTouchMode="true"
|
|
|
|
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:title="Electrum"
|
|
|
|
app:titleTextColor="@color/white"
|
|
|
|
app:titleTextAppearance="@style/Toolbar.TitleText"
|
|
|
|
app:navigationIcon="@drawable/menu"
|
|
|
|
app:popupTheme="@style/AppTheme.PopupOverlay"
|
|
|
|
app:menu="@menu/asset_hasmore"
|
|
|
|
app:contentInsetStartWithNavigation="0dp"/>
|
|
|
|
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
|
|
android:id="@+id/tab"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/toolbar"
|
|
|
|
app:tabTextAppearance="@style/TabTextAppearance"
|
|
|
|
app:tabIndicatorColor="@color/colorAccent"
|
|
|
|
app:tabIndicatorFullWidth="false"
|
|
|
|
app:tabIndicatorHeight="2dp"
|
|
|
|
app:tabMode="scrollable"
|
|
|
|
app:tabSelectedTextColor="@color/white"
|
|
|
|
app:tabTextColor="@color/white40" />
|
|
|
|
|
|
|
|
<include
|
|
|
|
layout="@layout/divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_below="@id/tab" />
|
|
|
|
|
|
|
|
<androidx.viewpager.widget.ViewPager
|
|
|
|
android:id="@+id/viewpager"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_below="@id/tab" />
|
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
|
|
|
android:id="@+id/fab"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:layout_marginBottom="32dp"
|
|
|
|
android:src="@drawable/plus"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
</layout>
|