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

Android ScrollView issue #2

Open
shaks786 opened this issue Dec 13, 2012 · 1 comment
Open

Android ScrollView issue #2

shaks786 opened this issue Dec 13, 2012 · 1 comment

Comments

@shaks786
Copy link

mashaAllah you've done a brilliant job here, just a slight problem with Android:

When trying to use a scrollview, if the urdu/arabic text is longer than the screen, when the screen is scrolled the rest of the screen is blank i.e. the bitmap doesn't get drawn.

I hope I've made myself clear - to reproduce just set the text of the textview to something really long.

@shaks786
Copy link
Author

Kind of found a solution (after many hours!) , in the Activity you can override the onFling method using gesture detector, in there you can invalidate the Label so that it is redrawn, i.e. like this:

@OverRide
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY)
{
Label tv = (Label)findViewById(R.id.sf_label);
tv.invalidate();
}

This may also work with the onScroll method for a scrollview, but I haven't tried it (I already was using a gesture detector)

Hope this helps!

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

1 participant