diff --git a/app/build.gradle b/app/build.gradle index 5603a40b35a501874262768d5a32ad7ac1b2ed6a..8feb84be0824419c757ea2f4bbcf6142caa70c3d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,6 +39,7 @@ dependencies { implementation 'com.android.support.constraint:constraint-layout:2.0.4' implementation "androidx.recyclerview:recyclerview:1.1.0" implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'com.google.android.material:material:1.0.0' testImplementation 'junit:junit:4.+' //androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' diff --git a/app/src/main/res/layout/fragment_task_list.xml b/app/src/main/res/layout/fragment_task_list.xml index e897cbfd4166c06f2a768b82c3937dbd8d9a559c..369364ec4a8ba0d477f6de4fa300cb7b8426fa66 100644 --- a/app/src/main/res/layout/fragment_task_list.xml +++ b/app/src/main/res/layout/fragment_task_list.xml @@ -15,14 +15,15 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - <Button - android:id="@+id/button3" + <com.google.android.material.floatingactionbutton.FloatingActionButton + android:id="@+id/floatingActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="30dp" android:layout_marginBottom="30dp" - android:text="Button" + android:clickable="true" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" /> + app:layout_constraintEnd_toEndOf="parent" + app:srcCompat="@drawable/ic_baseline_add_24" /> </androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file