android-viewflow icon indicating copy to clipboard operation
android-viewflow copied to clipboard

Unable to set Text for other layout

Open shaunidiot opened this issue 13 years ago • 1 comments

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.

shaunidiot avatar Nov 20 '12 13:11 shaunidiot

I'm having the same problem, any solution ?

Spxc avatar Jan 17 '13 09:01 Spxc