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 を使用しています。
2 番目以降のビューにデータを設定できません。あからさまに使う
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();
。
ドキュメントでは、最初のビューの例のみを示しており、2 番目のビューは示していません。したがって、私はこれで立ち往生しています。
何か案が?ありがとう。