Port enhancements from NMA
This commit is contained in:
@@ -36,6 +36,7 @@ dependencies {
|
||||
implementation("androidx.appcompat:appcompat:1.6.1")
|
||||
implementation("com.google.android.material:material:1.11.0")
|
||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||
implementation("androidx.recyclerview:recyclerview:1.3.2")
|
||||
testImplementation("junit:junit:4.13.2")
|
||||
androidTestImplementation("androidx.test.ext:junit:1.1.5")
|
||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
|
||||
|
@@ -2,7 +2,7 @@ package com.calebfontenot.crimeactivity;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
public class CrimeActivity extends SingleFragmentActivity{
|
||||
public class CrimeActivity extends SingleFragmentActivity {
|
||||
@Override
|
||||
protected Fragment createFragment() {
|
||||
return new CrimeFragment();
|
||||
|
@@ -3,10 +3,10 @@ package com.calebfontenot.crimeactivity;
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
public class CrimeListActivity extends SingleFragmentActivity {
|
||||
|
||||
public CrimeListActivity() {
|
||||
createFragment();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Fragment createFragment() {
|
||||
return new CrimeListFragment();
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v7.widget.RecyclerView
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/crime_recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
|
Reference in New Issue
Block a user