- Update libraries versions
- Add enable/disable tab state (with custom color)
- Add new xml attributes (
colored
,accentColor
,inactiveColor
,disableColor
,coloredActive
,coloredInactive
) - Add param
notificationAnimationDuration
- Update getDrawable method with
AppCompatResources.getDrawable(context, drawableRes);
If you use drawable selector and target API < 21, don't forget to add this:AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
- Fix selected item background for API >= 21
- Fix
isHidden()
method - Update design support library version
- Add
setTitleTextSizeInSp(float activeSize, float inactiveSize)
- Update selected item background for API >= 21
- Allow for the disabling of sound effects
- Fixed the icon alpha update for API >= 25
- Added method
getViewAtPosition(int position)
- Fix a bug when titles are always shown
- Fix a crash with
setCurrentItem(int position, boolean useCallback)
- BREAKING! 3 states for titles:
SHOW_WHEN_ACTIVE
,ALWAYS_SHOW
&ALWAYS_HIDE
(PR #140) - Color under the navigation bar (PR #166)
- Fix CoordinatorLayout with FloatingActionButton: use
manageFloatingActionButtonBehavior
- Fixed ripple effect bug (API 21+)
- Added AHNotification class to manage easily the style of each notification (PR #156) (old method still works)
- Added
setForceTitlesHide(boolean forceTitlesHide)
to force the titles to be hidden (when 3 or less items are displayed) - Updated
buildToolsVersion
to version24.0.2
- Updated
'com.android.support:design:24.2.1'
- Added
isHidden()
method. - Added
setDefaultBackgroundResource(@DrawableRes int defaultBackgroundResource)
- Added optional selected item background (PR #132)
- Displayed classic items for less than 3 items (PR #152)
- Added a setup method with colors for
AHBottomNavigationAdapter
- Added a new class
AHBottomNavigationAdapter
to inflate menu from resources. - Updated example to show how to implement
AHBottomNavigationAdapter
.
- Added
setColoredModeColors(@ColorInt int colorActive, @ColorInt int colorInactive)
to set the item color for the colored mode. - Added
OnNavigationPositionListener
to follow the Y translation changes of the bottom navigation. - Improved vector support.
- BREAKING! Updated listener, now return a boolean =>
boolean onTabSelected(int position, boolean wasSelected);
- Improved notification management for small items
- Added notification elevation
- Managed complex drawable (selector with states)
- Added constructor
public AHBottomNavigationItem(String title, Drawable drawable)
- Added
setUseElevation(boolean useElevation, float elevation)
- Fixed a bug with
behaviorTranslationEnabled
&restoreBottomNavigation
- Improved translation behavior when the Scroll View is not long enough.
- Fixed bug when switching between normal and colored mode
- Fixed method typo
setNotificationMarginLef
=>setNotificationMarginLeft
- Avoid multiple call for showing/hiding AHBottomNavigation
- Updated Notification: now accept String (empty String to remove the notification)
- Deprecated integer for Notification
- Removed deprecated methods & interface for
AHBottomNavigationListener
- Fixed touch ripples when the bottom navigation is colored
- Cleaned colors.xml to avoid conflicts
- Removed constructor AHBottomNavigationItem()
- Added
setTitleTextSize(float activeSize, float inactiveSize)
- Added
setNotificationMarginLeft(int activeMargin, int inactiveMargin)
- Added
hideBottomNavigation(boolean withAnimation)
- Added
restoreBottomNavigation(boolean withAnimation)
- Added
public AHBottomNavigationItem getItem(int position)
to get a specific item - Added
public void refresh()
to force a UI refresh
- Improved
hideBottomNavigation()
andrestoreBottomNavigation()
- Added
setTitleTypeface
- Changed method name
setNotificationBackgroundColorResource
bysetNotificationTypeface
- Started working on
onSaveInstanceState
andonRestoreInstanceState
(currentItem & notifications for now)
- Added hideBottomNavigation()
- Added CURRENT_ITEM_NONE to unselect all items
- Improved Notifications (animation, size)
- Updated lib dependencies
- Fixed Snackbar when setBehaviorTranslationEnabled(false)
- Fixed animations on pre Kit Kat
- Added an example with Vector Drawable
- Fixed layout rendering with fragments
- Compatible with Snackbar
- Compatible with Floating Action Button
- Snackbar is now compatible
- Added: setCurrentItem(int position, boolean useCallback)
- Added: setUseElevation(boolean useElevation)
- Added: restoreBottomNavigation()
- Fixed setForceTint()
- Fixed crash when setForceTitlesDisplay(true)
- Improved UI
- Bug fixes
- Notifications
- Minimum SDK version: 14
- AHBottomNavigation was under development.