memorizing-pager
memorizing-pager copied to clipboard
Lightweight library to handle BottomNavigationView behaviour (eg like in YoutubeApp)
memorizing-pager

What?
Lightweight library for BottomNavigationView which allows navigating in the opposite direction when calling onBackPressed in Activity
Setup
- You should add id's for you navigation menu items and android:orderInCategory (navigation.xml)
- Add NavigationHistory to you activity (BaseNavigationActivity)
- Setup NavigationHistory with you navigation type (ViewPager,ViewPager2,FrameLayout)
Download
Download the latest release or grab via Gradle:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.lndmflngs:memorizing-pager:2.0.5'
}
Issue Tracking
Found a bug? Have an idea for an improvement? Feel free to add an issue
License
Copyright (C) 2018-2020 Ivan Zinovyev (https://github.com/lndmflngs)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.