From 98da809791533cbbba5ac6279ac3bbcffdb7d043 Mon Sep 17 00:00:00 2001 From: vaibhav Date: Wed, 16 Mar 2022 20:32:51 +0530 Subject: [PATCH] Updated code in demo NavControllerActivity.kt, this works in latest version of navigation components version , the old code did not. Added documentation for setting up bottom bar with navigation components. Linted whole codebase using Kt-Lint --- .idea/compiler.xml | 6 + .idea/jarRepositories.xml | 5 + .idea/ktlint.xml | 11 ++ .idea/misc.xml | 3 +- .idea/runConfigurations.xml | 12 -- README.md | 126 ++++++++++----- .../ExampleInstrumentedTest.kt | 2 +- demo/src/main/AndroidManifest.xml | 4 +- .../demo/animatedbottombar/ExampleActivity.kt | 3 +- .../demo/animatedbottombar/Extensions.kt | 2 +- .../demo/animatedbottombar/ReflectionUtils.kt | 2 +- .../bottomsheet/BottomSheetActivity.kt | 3 +- .../navcontroller/FirstFragment.kt | 5 +- .../navcontroller/FourthFragment.kt | 5 +- .../navcontroller/NavControllerActivity.kt | 14 +- .../navcontroller/SecondFragment.kt | 5 +- .../navcontroller/ThirdFragment.kt | 5 +- .../playground/PlaygroundActivity.kt | 6 +- .../playground/PropertyAdapter.kt | 19 ++- .../playground/XmlGenerator.kt | 2 +- .../playground/properties/BooleanProperty.kt | 3 +- .../playground/properties/CategoryProperty.kt | 3 +- .../playground/properties/ColorProperty.kt | 3 +- .../playground/properties/EnumProperty.kt | 3 +- .../playground/properties/IntegerProperty.kt | 3 +- .../properties/InterpolatorProperty.kt | 3 +- .../playground/properties/Property.kt | 2 +- .../viewpager/SampleFragment.kt | 3 +- .../viewpager/ViewPagerActivity.kt | 3 +- .../main/res/layout/activity_bottom_sheet.xml | 6 +- .../demo/animatedbottombar/ExampleUnitTest.kt | 2 +- .../AnimatedBottomBarTest.kt | 2 +- .../animatedbottombar/AnimatedBottomBar.kt | 76 +++++---- .../nl/joery/animatedbottombar/BadgeView.kt | 27 ++-- .../joery/animatedbottombar/BottomBarStyle.kt | 2 +- .../animatedbottombar/NoCopyArrayList.kt | 10 +- .../nl/joery/animatedbottombar/SavedState.kt | 10 +- .../nl/joery/animatedbottombar/TabAdapter.kt | 12 +- .../joery/animatedbottombar/TabIndicator.kt | 18 +-- .../nl/joery/animatedbottombar/TabView.kt | 146 ++++++++++-------- .../animatedbottombar/utils/Extensions.kt | 5 +- .../animatedbottombar/utils/MenuParser.kt | 11 +- .../utils/NavigationComponentHelper.kt | 38 ++--- .../nl/joery/animatedbottombar/utils/Utils.kt | 5 +- .../animatedbottombar/ExampleUnitTest.kt | 2 +- 45 files changed, 360 insertions(+), 278 deletions(-) create mode 100644 .idea/compiler.xml create mode 100644 .idea/ktlint.xml delete mode 100644 .idea/runConfigurations.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..fb7f4a8 --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 2370474..35ffc9d 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -26,5 +26,10 @@