BottomBar: getBarSize(new OnSizeDeterminedListener()) does not update (attachShy)
This only give me one number, when my activity is first launched:
bottomBar.getBarSize(new OnSizeDeterminedListener() {
@Override
public void onSizeReady(int size) {
Log.e("height", String.valueOf(size));
float translationY = Math.min(0, floatingActionButton.getTranslationY() - size);
floatingActionButton.setTranslationY(translationY);
}
});
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (11 by maintainers)
@roughike Then I have to adjust proper translation for FAB in the behavior.
Is there any Update on this, the fab still goes below the BottomBar. If I get LayoutParams and set the BottomMargin manually then the Same Margin is used as the SnackBar Margin and everything looks ugly.
@roughike I think yes. Give me some time.