Add base viewmodel and recyclerview adapter logic

This commit is contained in:
2019-09-13 17:21:41 +02:00
committed by Matte23
parent 57ecdd8062
commit d87210e1ca
11 changed files with 107 additions and 19 deletions

View File

@@ -3,8 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="?attr/actionBarSize">
android:layout_height="match_parent">
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view"

View File

@@ -1,6 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/circulars_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout_editor_absoluteX="168dp"
tools:layout_editor_absoluteY="235dp" />
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@@ -0,0 +1,14 @@
<?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="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:orientation="vertical">
<TextView
android:id="@+id/circular_title_textview"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>