Skip to content

Commit 11b4e0f

Browse files
authored
Update README.md
1 parent ea8f303 commit 11b4e0f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ As mentioned, when using the Bottom Navigation View from the Android Support Lib
2626

2727
- **AdaptableBottomNavigationView** - The Bottom Navigation View for displaying navigation items in a bar at the bottom of the screen. This view extends the BottomNavigationView from the Design Support Library, so the two classes are easily interchangable in your projects.
2828

29-
- **ViewSwapper** - The View Swapper is used to easily switch between fragments that you wish to display to the user. Unlike the View pager, views will not transition between pages and swiping is not possible - hence adhering to the Design Principles for the Bottom Navigation View.
29+
- **ViewSwapper** - The View Swapper is used to easily switch between fragments that you wish to display to the user. Unlike the View pager, views will not transition between pages and swiping is not possible - hence adhering to the Design Principles for the Bottom Navigation View. This view is essentially a tweaked version of the ViewPager component that you're probably familiar with already!
3030

3131
- **FragmentStateAdapter / FragmentAdapter** - An abstract adapter that allows you to create an adapter for displaying fragments within the ViewSwapper. These classes are the same as the implementations found within the Android Framework, agan with a few tweaks to better match the behaviour of the View Swapper component.
3232

@@ -38,8 +38,6 @@ In the library you'll notice the ViewSwapper component. This is similar to the V
3838

3939
- The ViewSwapper *doesn't* allow swiping between views - this allows us to adhere to the guidelines for not allowing the Bottom Navigation to be interacted with in this way
4040

41-
- Re-showing the item that is already in view will force a refresh of the views contents. So just like the guidelines state for the Bottom Navigation View, reselecting a navigaton item will reload the contents of the currently displayed item.
42-
4341
# How to use
4442

4543
In order to use this ViewSwapper component you need to use our SimpleBottomNavigationView - this is simply an extension of the support library component with the added functionality of ViewSwapper attachment and elevation. This will look like so in your layout file:

0 commit comments

Comments
 (0)