forked from upstream-mirrors/quik
159 lines
6.4 KiB
XML
159 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2017 Moez Bhatti <moez.bhatti@gmail.com>
|
|
~
|
|
~ This file is part of QKSMS.
|
|
~
|
|
~ QKSMS 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.
|
|
~
|
|
~ QKSMS 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
|
|
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
<android.support.v4.widget.DrawerLayout android:id="@+id/drawerLayout"
|
|
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.support.constraint.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:animateLayoutChanges="true">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
style="@style/Toolbar"
|
|
android:animateLayoutChanges="true"
|
|
android:focusable="true"
|
|
android:focusableInTouchMode="true"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:background="@color/white">
|
|
|
|
<common.widget.QkTextView
|
|
android:id="@+id/toolbarTitle"
|
|
style="@style/ToolbarText" />
|
|
|
|
<common.widget.QkEditText
|
|
android:id="@+id/toolbarSearch"
|
|
style="@style/ToolbarText"
|
|
android:hint="@string/title_conversations"
|
|
app:textColorHint="tertiary"
|
|
app:textSize="primary"
|
|
tools:textSize="16sp" />
|
|
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
<android.support.constraint.Group
|
|
android:id="@+id/syncing"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:constraint_referenced_ids="syncingProgress,syncingLabel"
|
|
tools:visibility="gone" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/syncingProgress"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="8dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:layout_marginStart="32dp"
|
|
app:layout_constraintBottom_toTopOf="@id/syncingLabel"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed" />
|
|
|
|
<common.widget.QkTextView
|
|
android:id="@+id/syncingLabel"
|
|
style="@style/TextSecondary"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="32dp"
|
|
android:layout_marginStart="32dp"
|
|
android:gravity="center"
|
|
android:text="@string/main_syncing"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/syncingProgress" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/synced"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar">
|
|
|
|
<common.widget.QkTextView
|
|
android:id="@+id/empty"
|
|
style="@style/TextSecondary"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="center"
|
|
android:gravity="center"
|
|
android:padding="56dp"
|
|
tools:text="Your conversations will appear here"
|
|
tools:visibility="invisible" />
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:paddingBottom="8dp"
|
|
android:paddingTop="8dp"
|
|
tools:listitem="@layout/conversation_list_item" />
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/compose"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_margin="16dp"
|
|
android:src="@drawable/ic_add_black_24dp"
|
|
android:tint="@color/white"
|
|
app:layout_anchor="@+id/recyclerView"
|
|
app:layout_anchorGravity="bottom|right|end"
|
|
tools:backgroundTint="@color/tools_theme" />
|
|
|
|
</FrameLayout>
|
|
|
|
<View
|
|
android:layout_width="0dp"
|
|
android:layout_height="8dp"
|
|
android:background="@drawable/ab_shadow"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/toolbar" />
|
|
|
|
<common.widget.Separator
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
<include
|
|
android:id="@+id/drawer"
|
|
layout="@layout/drawer_view"
|
|
android:layout_width="320dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:background="@color/white" />
|
|
|
|
</android.support.v4.widget.DrawerLayout> |