私の TextView クラスは
static class ViewHolder {
protected TextView tv0;
protected TextView tv1;
protected TextView tv2;
protected TextView tv3;
protected TextView tv4;
protected TextView tv5;
protected TextView tv6;
protected TextView tv7;
}
linearview.setTag(viewHolder);
linearView.setId(xyz);
// viewHolder.tv5 id は xyz+5 になります
これで、view.getTag を使用してクラス全体を取得できます。私が欲しいのは、「TEST」という単語があるとします
私のランダム関数は 2 を選択するので、tv2 = T、tv3 = E などが必要です。str.getCharAt を使用して char を取得できますが、ランダムな単語から textViews を取得する方法。
よろしくお願いします