I'm android beginner. I have 3 tab control (each tab control have list view). class Active I has function :
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
// TODO Auto-generated method stub
super.onListItemClick(l, v, position, id);
TextView link=(TextView)findViewById(R.id.txt1);
link.setText("Hot news >> "+lv_arr[position]);
LinearLayout llo=(LinearLayout)findViewById(R.id.lout_link);
Button bt_link=new Button(this);
bt_link.setText("test");
llo.addView(bt_link);
}
It just working with listview (first tabcontrol, listview in other tabcontrol it not working).
So how set event onclick listview in second, third tabcotrol? .
Thanks very very much.