Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ahbottomnavigation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@ ext {
bintrayRepo = 'maven'
bintrayName = 'ah-bottom-navigation'

publishedGroupId = 'com.aurelhubert'
publishedGroupId = 'tech.xana.android'
libraryName = 'AHBottomNavigation'
artifact = 'ahbottomnavigation'

libraryDescription = 'A library to reproduce the behavior of the Bottom Navigation guidelines from Material Design.'

siteUrl = 'https://github.com/aurelhubert/ahbottomnavigation'
gitUrl = 'https://github.com/aurelhubert/ahbottomnavigation.git'
siteUrl = 'https://github.com/xanahopper/ahbottomnavigation'
gitUrl = 'https://github.com/xanahopper/ahbottomnavigation.git'

libraryVersion = '2.1.0'

developerId = 'aurelhubert'
developerName = 'Aurelien Hubert'
developerEmail = 'aurel.hubert@gmail.com'
developerId = 'xanahopper'
developerName = 'Xana Hopper'
developerEmail = 'xanahopper@163.com'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public enum TitleState {
private ArrayList<AHBottomNavigationItem> items = new ArrayList<>();
private ArrayList<View> views = new ArrayList<>();
private AHBottomNavigationBehavior<AHBottomNavigation> bottomNavigationBehavior;
private AHBottomNavigationFABBehavior fabBehavior;
private LinearLayout linearLayoutContainer;
private View backgroundColorView;
private Animator circleRevealAnim;
Expand Down Expand Up @@ -317,7 +318,12 @@ private int calculateHeight(int layoutHeight) {
}

typedValue.recycle();

if (bottomNavigationBehavior != null && translucentNavigation) {
bottomNavigationBehavior.setBehaviorTranslationEnabled(translucentNavigationEnabled, navigationBarHeight);
}
if (fabBehavior != null && translucentNavigation) {
fabBehavior.setNavigationBarHeight(navigationBarHeight);
}
return layoutHeight;
}

Expand Down Expand Up @@ -1250,7 +1256,7 @@ public void setBehaviorTranslationEnabled(boolean behaviorTranslationEnabled) {
*/
public void manageFloatingActionButtonBehavior(FloatingActionButton fab) {
if (fab.getParent() instanceof CoordinatorLayout) {
AHBottomNavigationFABBehavior fabBehavior = new AHBottomNavigationFABBehavior(navigationBarHeight);
fabBehavior = new AHBottomNavigationFABBehavior(navigationBarHeight);
((CoordinatorLayout.LayoutParams) fab.getLayoutParams())
.setBehavior(fabBehavior);
}
Expand Down
Loading