diff --git a/app/build.gradle b/app/build.gradle index bac382a..92f0576 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,8 +28,8 @@ dependencies { implementation project(':lib-expandablebottombar') implementation 'androidx.appcompat:appcompat:1.2.0' - implementation 'com.google.android.material:material:1.2.0' - implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + implementation 'com.google.android.material:material:1.2.1' + implementation 'androidx.constraintlayout:constraintlayout:2.0.1' implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0' implementation 'androidx.navigation:navigation-ui-ktx:2.3.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 663b186..9bd4bc6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -3,7 +3,7 @@ package="github.com.st235.expandablebottombar"> + bottomBar.onItemReselectedListener = { _, i -> Log.d("ExpandableBottomBar", "OnReselected: ${i.itemId}") } } diff --git a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/FirstFragment.kt b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/FirstFragment.kt index 641f12f..850ee6a 100644 --- a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/FirstFragment.kt +++ b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/FirstFragment.kt @@ -14,4 +14,4 @@ class FirstFragment: Fragment() { container: ViewGroup?, savedInstanceState: Bundle? ): View? = inflater.inflate(R.layout.fragment_one, container, false) -} \ No newline at end of file +} diff --git a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/NavigationComponentActivity.kt b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/NavigationComponentActivity.kt index 29eae5e..81656f2 100644 --- a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/NavigationComponentActivity.kt +++ b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/NavigationComponentActivity.kt @@ -22,4 +22,4 @@ class NavigationComponentActivity: AppCompatActivity() { */ ExpandableBottomBarNavigationUI.setupWithNavController(bottomNavigation, navigationController) } -} \ No newline at end of file +} diff --git a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/SecondFragment.kt b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/SecondFragment.kt index cefa926..c54864e 100644 --- a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/SecondFragment.kt +++ b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/SecondFragment.kt @@ -14,4 +14,4 @@ class SecondFragment: Fragment() { container: ViewGroup?, savedInstanceState: Bundle? ): View? = inflater.inflate(R.layout.fragment_two, container, false) -} \ No newline at end of file +} diff --git a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/ThirdFragment.kt b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/ThirdFragment.kt index e228473..bf594fe 100644 --- a/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/ThirdFragment.kt +++ b/app/src/main/java/github/com/st235/expandablebottombar/screens/navigation/ThirdFragment.kt @@ -14,4 +14,4 @@ class ThirdFragment: Fragment() { container: ViewGroup?, savedInstanceState: Bundle? ): View? = inflater.inflate(R.layout.fragment_three, container, false) -} \ No newline at end of file +} diff --git a/app/src/main/res/layout/activiy_navigation.xml b/app/src/main/res/layout/activiy_navigation.xml index 4f8937b..cee36a2 100644 --- a/app/src/main/res/layout/activiy_navigation.xml +++ b/app/src/main/res/layout/activiy_navigation.xml @@ -1,6 +1,7 @@ @@ -14,7 +15,8 @@ app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" - app:navGraph="@navigation/navigation" /> + app:navGraph="@navigation/navigation" + tools:ignore="FragmentTagUsage" /> @@ -9,6 +10,7 @@ android:text="Hello Fragment 1" android:textColor="#000" android:layout_gravity="center" - android:textSize="22sp" /> + android:textSize="22sp" + tools:ignore="HardcodedText" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_three.xml b/app/src/main/res/layout/fragment_three.xml index f3c4169..6432ce4 100644 --- a/app/src/main/res/layout/fragment_three.xml +++ b/app/src/main/res/layout/fragment_three.xml @@ -1,7 +1,8 @@ + android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools"> + android:textSize="22sp" + tools:ignore="HardcodedText" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_two.xml b/app/src/main/res/layout/fragment_two.xml index 79ac042..754a7e5 100644 --- a/app/src/main/res/layout/fragment_two.xml +++ b/app/src/main/res/layout/fragment_two.xml @@ -1,7 +1,8 @@ + android:layout_height="match_parent" + xmlns:tools="http://schemas.android.com/tools"> + android:textSize="22sp" + tools:ignore="HardcodedText" /> \ No newline at end of file diff --git a/app/src/main/res/menu/navigation_menu.xml b/app/src/main/res/menu/navigation_menu.xml index b0f527a..e533ef9 100644 --- a/app/src/main/res/menu/navigation_menu.xml +++ b/app/src/main/res/menu/navigation_menu.xml @@ -4,20 +4,17 @@ android:id="@+id/fragment1" android:title="@string/text" android:icon="@drawable/ic_home" - app:showAsAction="always" app:exb_color="#FF8888" /> \ No newline at end of file diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml deleted file mode 100644 index 59a0b0c..0000000 --- a/app/src/main/res/values/dimens.xml +++ /dev/null @@ -1,3 +0,0 @@ - - 16dp - diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e57a8b6..981bb0c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -4,7 +4,6 @@ Likes Bookmarks Settings - CoordinatorLayoutActivity Manually created This showcase demonstrates the basic usage of library.\nSee: https://github.com/st235/ExpandableBottomBar#usage diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 6f6fa1b..0eb88fe 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -8,6 +8,4 @@ @color/colorAccent -