134 lines
5.7 KiB
XML
134 lines
5.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.v4.widget.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:id="@+id/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fitsSystemWindows="true">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:background="?attr/colorPrimary"
|
|
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
<RelativeLayout 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:fitsSystemWindows="true"
|
|
tools:context=".ui.MainActivity">
|
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
android:id="@+id/main_content"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_test"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/connection_test_height"
|
|
android:background="@drawable/background_test_button"
|
|
android:gravity="center|left"
|
|
android:clickable="true"
|
|
android:focusable="true">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_test_state"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxLines="2"
|
|
android:minLines="1"
|
|
android:paddingStart="16dp"
|
|
android:text="@string/connection_test_pending"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
|
android:textColor="@color/colorPrimary_light" />
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
<com.github.jorgecastilloprz.FABProgressCircle
|
|
android:id="@+id/fabProgressCircle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="24dp"
|
|
android:layout_gravity="bottom|end">
|
|
|
|
<android.support.design.widget.FloatingActionButton
|
|
android:id="@+id/fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_gravity="bottom|end"
|
|
android:layout_marginBottom="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:src="@drawable/ic_v_idle"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
app:layout_anchorGravity="bottom|right|end" />
|
|
|
|
</com.github.jorgecastilloprz.FABProgressCircle>
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
|
|
<android.support.design.widget.NavigationView
|
|
android:id="@+id/nav_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
app:headerLayout="@layout/nav_header"
|
|
app:itemIconTint="@color/colorPrimary_dark"
|
|
app:itemTextColor="@color/colorPrimary"
|
|
app:menu="@menu/menu_drawer" >
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:background="@color/white"
|
|
android:padding="14dp">
|
|
|
|
<TextView
|
|
android:id="@+id/version"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:textColor="@color/accent" />
|
|
</LinearLayout>
|
|
</android.support.design.widget.NavigationView>
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|
|
|