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

Previous page position #1

Open
santral06 opened this issue Apr 16, 2013 · 1 comment
Open

Previous page position #1

santral06 opened this issue Apr 16, 2013 · 1 comment
Labels

Comments

@santral06
Copy link

Hi, I'm using MathFactCards to create viewpager with asynctask.
But there is a problem I couldnt solve .
When we setText the position uri[0] to textview (tv) which is inflated in pageradapter, it shows positions correctly.

But when we use setText uri[0] for MainActivity's textview , it gives me wrong positions; especially when we swipe previous page.

in FetchFactTask:
outTxt.setText(uri[0]+""] => correct position order
MainActivity.TxtView.setText(uri[0]+""] => wrong positions

@FoamyGuy
Copy link
Owner

The only place where the txtView should get set is from onPostExecute() inside the FetchFact Task. It should not get set directly from MainActivity.

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

No branches or pull requests

2 participants