私の英語で申し訳ありません..これはgoogle traductorです
たとえば、10 LLseccion (java) を作成します。
各 LLseccion には内部に複数のオブジェクトがあります (imageview と 2 つの textview)
クリックされたレイアウトの最初のテキストビューを読みたい
LinearLayout LLseccion = new LinearLayout(getApplicationContext());
LLseccion.setOrientation(LinearLayout.HORIZONTAL);
LLseccion.setId(i);
LLseccion.setClickable(true);
LLseccion.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
TextView tvBIG=new TextView(getApplicationContext());
tvBIG.setText("i want read this");
tvBIG.setTypeface(FontNormal);
tvBIG.setTextSize(bigSize);
tvBIG.setTextColor(getResources().getColor(R.color.GREEN));
tvBIG.setSingleLine(true);
LLseccion.addView(tvBIG);
TextView tvSMALL=new TextView(getApplicationContext());
tvSMALL.setText("other text");
tvSMALL.setTypeface(FontNormal);
tvSMALL.setTextSize(smallSize);
tvSMALL.setTextColor(getResources().getColor(R.color.GREEN));
tvSMALL.setPadding(30, 0, 0, 0);
tvSMALL.setSingleLine(true);
LLseccion.addView(tvSMALL);