Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Unable to set Text for other layout #82

Open
shaunidiot opened this issue Nov 20, 2012 · 1 comment
Open

Unable to set Text for other layout #82

shaunidiot opened this issue Nov 20, 2012 · 1 comment

Comments

@shaunidiot
Copy link

I am using DiffViewFlowExample at https://github.com/pakerfeldt/android-viewflow/blob/master/viewflow-example/src/org/taptwo/android/widget/viewflow/example/DiffViewFlowExample.java

I am unable to set data onto the second and above view. Plainly using

tvProfileName = (TextView) findViewById(R.id.tvProfileName);

gives a null error, whereas

LayoutInflater factory = finalIndividual.this.getLayoutInflater();
View secondLayout = factory.inflate(R.layout.finalindividual_second, null);
tvProfileName = (TextView) secondLayout.findViewById(R.id.tvProfileName);

doesn't seem to set any data when setText(); is used.

The docs only gives an example for the first view and not the second. Thus, I am stuck at this.

Any idea? Thanks.

@Spxc
Copy link

Spxc commented Jan 17, 2013

I'm having the same problem, any solution ?

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

No branches or pull requests

2 participants