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

support api 8 and up #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

support api 8 and up #39

wants to merge 1 commit into from

Conversation

ndori
Copy link

@ndori ndori commented Apr 7, 2015

currently this library supports only api 14 and above (although it can actually support api 11 and above out of the box)

I've made a workaround for api that are lower than 11.

@nileshtrivedi
Copy link

+1 Would love to see this get merged.

@anandinmaddy
Copy link

@grantland please merge the changes of @ndori

@grantland
Copy link
Owner

grantland commented May 4, 2016

Could someone confirm that this works on android-8? I would think it would crash when trying to load the class View.OnLayoutChangeListener.

In addition, this needs to be rebased on master.

@Override
public void onLayoutChange(View view, int left, int top, int right, int bottom,
int oldLeft, int oldTop, int oldRight, int oldBottom) {
private AutofitSizeChangedListener sizeListener = new AutofitSizeChangedListener();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use hungarian notation to match the style in the rest of the file

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: also keep this up top with other ivars

@grantland
Copy link
Owner

Unfortunately it looks like this change will only allow usage of AutofitTextView in android-8, but not AutofitHelper with other TextView implementations (i.e. EditText, etc.). Is this what you all would expect?

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

Successfully merging this pull request may close these issues.

4 participants