Move the recycler view to its own fragment

This commit is contained in:
Alexander Bakker 2017-12-25 15:36:29 +01:00
parent 0427164529
commit 950c6d0cf3
5 changed files with 121 additions and 51 deletions

View file

@ -30,22 +30,11 @@
android:src="@drawable/ic_add_black_24dp"
android:tint="@color/background"/>
<RelativeLayout
android:layout_width="match_parent"
<fragment
android:name="me.impy.aegis.KeyProfileView"
android:id="@+id/key_profiles"
android:layout_height="match_parent"
android:background="?attr/background"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="me.impy.aegis.MainActivity"
tools:showIn="@layout/activity_main">
android:layout_width="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/rvKeyProfiles"
android:layout_alignParentTop="true"
/>
</RelativeLayout>
</android.support.design.widget.CoordinatorLayout>
</android.support.design.widget.CoordinatorLayout>

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/background">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/rvKeyProfiles"/>
</LinearLayout>