0

我在https://github.com/pakerfeldt/android-viewflow使用 android-viewflow

我在https://github.com/pakerfeldt/android-viewflow/blob/master/viewflow-example/src/org/taptwo/android/widget/viewflow/example/DiffViewFlowExample.java使用 DiffViewFlowExample

我无法将数据设置到第二个及以上视图。明明使用

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

给出一个空错误,而

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

使用时似乎没有设置任何数据setText();

该文档仅提供了第一个视图的示例,而不是第二个视图。因此,我陷入了困境。

任何想法?谢谢。

4

1 回答 1

0

如果您想更改“不同视图->”下的文本 View2,那么您需要在“DiffAdapter.java”中对此处定义的名称数组进行更改...

于 2012-11-20T13:04:53.213 回答