diff --git a/README.md b/README.md index 0fe355be1..a6408be07 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,9 @@ You can find some frequently asked questions and other resources in the [WIKI / ## Latest releases -- Kotlin | [v7.0.0-rc06](https://github.com/mikepenz/MaterialDrawer/tree/v7.0.0-rc06) +- Kotlin | [v7.0.0-rc07](https://github.com/mikepenz/MaterialDrawer/tree/v7.0.0-rc07) - Java && AndroidX | [v6.1.2](https://github.com/mikepenz/MaterialDrawer/tree/v6.1.2) -- Java && AppCompat |[v6.0.9](https://github.com/mikepenz/MaterialDrawer/tree/v6.0.9) +- Java && AppCompat | [v6.0.9](https://github.com/mikepenz/MaterialDrawer/tree/v6.0.9) ## 1. Provide the gradle dependency diff --git a/app/build.gradle b/app/build.gradle index 2ea4da966..a7ecedcc8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -68,7 +68,6 @@ dependencies { // used to showcase how to load images implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.github.bumptech.glide:glide:4.9.0' - implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' kapt 'com.github.bumptech.glide:compiler:4.9.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 37f18e1b9..3c87cc8b8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -70,8 +70,7 @@ - + android:theme="@style/MaterialDrawerTheme.Light.DarkToolbar"> \ No newline at end of file diff --git a/app/src/main/java/com/mikepenz/materialdrawer/app/NavControllerActivity.kt b/app/src/main/java/com/mikepenz/materialdrawer/app/NavControllerActivity.kt index 8aa1f0e8f..fc224976e 100644 --- a/app/src/main/java/com/mikepenz/materialdrawer/app/NavControllerActivity.kt +++ b/app/src/main/java/com/mikepenz/materialdrawer/app/NavControllerActivity.kt @@ -26,7 +26,7 @@ class NavControllerActivity : AppCompatActivity() { .withActivity(this) .withToolbar(toolbar) .addDrawerItems( - NavigationDrawerItem(R.id.fragmentHome, PrimaryDrawerItem().withName("Home")), + NavigationDrawerItem(R.id.action_global_fragmentHome, PrimaryDrawerItem().withName("Home"), null, null), DividerDrawerItem(), NavigationDrawerItem(R.id.messageFragment1, PrimaryDrawerItem().withName("Fragment1")), NavigationDrawerItem(R.id.messageFragment2, PrimaryDrawerItem().withName("Fragment2")), diff --git a/app/src/main/java/com/mikepenz/materialdrawer/app/fragment/DemoMessageFragment.kt b/app/src/main/java/com/mikepenz/materialdrawer/app/fragment/DemoMessageFragment.kt index 22adc15b2..029590f51 100644 --- a/app/src/main/java/com/mikepenz/materialdrawer/app/fragment/DemoMessageFragment.kt +++ b/app/src/main/java/com/mikepenz/materialdrawer/app/fragment/DemoMessageFragment.kt @@ -29,6 +29,7 @@ class DemoMessageFragment : Fragment() { btnFragment1.setOnClickListener { navigateTo(R.id.messageFragment1) } btnFragment2.setOnClickListener { navigateTo(R.id.messageFragment2) } btnFragment3.setOnClickListener { navigateTo(R.id.messageFragment3) } + btnPopup.setOnClickListener { navigateTo(R.id.action_global_fragmentHome) } } private fun navigateTo(destination: Int) { diff --git a/app/src/main/res/layout/fragment_message_sample.xml b/app/src/main/res/layout/fragment_message_sample.xml index 61160aaba..a9c9a6c99 100644 --- a/app/src/main/res/layout/fragment_message_sample.xml +++ b/app/src/main/res/layout/fragment_message_sample.xml @@ -1,7 +1,6 @@ @@ -78,4 +77,18 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/btnFragment2" /> + +