This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
FAM On 4.4.4 pressing on the label changes button's color #82
Comments
same here |
Same here! |
Could you provide some sample code for that? I'll try to find some time to fix this in near future. |
Thanks a lot! Below is my onViewCreated function, in which as you can see, I setup the FloatingActionMenu. The code is copied and pasted (more or less) from your sample app. public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
final FloatingActionMenu fam = (FloatingActionMenu) view.findViewById(R.id.material_card_fam);
fam.setMenuButtonColorNormalResId(R.color.accent);
fam.setMenuButtonColorPressedResId(R.color.accent_pressed);
fam.setMenuButtonColorRippleResId(R.color.ripple);
fam.hideMenuButton(false);
fam.setClosedOnTouchOutside(true);
fam.setIconAnimated(true);
createCustomAnimation(fam);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
fam.showMenuButton(true);
}
}, 500);
final FloatingActionButton fabPrev = (FloatingActionButton) view.findViewById(R.id.fam_btn_prev);
fabPrev.setButtonSize(FloatingActionButton.SIZE_MINI);
fabPrev.setColorNormalResId(R.color.accent);
fabPrev.setColorPressedResId(R.color.accent_pressed);
fabPrev.setColorRippleResId(R.color.ripple);
final FloatingActionButton fabNext = (FloatingActionButton) view.findViewById(R.id.fam_btn_next);
fabNext.setButtonSize(FloatingActionButton.SIZE_MINI);
fabNext.setColorNormalResId(R.color.accent);
fabNext.setColorPressedResId(R.color.accent_pressed);
fabNext.setColorRippleResId(R.color.ripple);
fabPrev.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(mDateInfoCard != null)
mDateInfoCard.updateForPrevDay();
fam.close(true);
}
});
fabNext.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(mDateInfoCard != null)
mDateInfoCard.updateForNextDay();
fam.close(true);
}
});
initCard();
} I recently updated to 5.0.1. In all APIs v. 21 and up, as well as in Kit Kat 4.4.2 (API 19) against which I'm testing with an emulator, the problem described does not appear. It appears only in 4.4.4. Thank you in advance! |
Found the problem and fixed. Will upload new build on weekends. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi everyone,
I noticed a weird behavior while testing my app for various platforms. On 4.4.4, if someone presses on the label of a button of a floating action menu, and that label has a different color from the button, then the button changes to that color, and stays there no matter how many times you open and close the menu. It will change to its proper color only if you tap on it (instead of its label). This doesn't happen on lollipop. Are there any workarounds?
The text was updated successfully, but these errors were encountered: