Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why to limit it to API 16 when you can make for earlier APIs? #12

Closed
hirakchhatbar opened this issue Jan 25, 2016 · 1 comment
Closed

Comments

@hirakchhatbar
Copy link

Hi,
you can use
if (Build.VERSION.SDK_INT < 16)
{
fabContainer.getViewTreeObserver().removeGlobalOnLayoutListener(this);
fab.setVisibility(VISIBLE);
} else {
fabContainer.getViewTreeObserver().removeOnGlobalLayoutListener(this);
fab.setVisibility(VISIBLE);
}
to make it compatible for <16 sdk versions.

@fafaldo-zz
Copy link
Owner

I know, I know. I just sometimes tend to use 16 by default, as I no longer target any earlier versions in my projects. Anyway, my implementation uses new animation API introduced in SDK 11, so I lowered min SDK to next higher value that seemed reasonable - 15 (targeting early releases of the Ice Cream Sandwich and Honeycomb is futile, as nobody uses them anymore).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants