부풀려진 테이블에서 버튼의 태그를 얻으려면 어떻게해야합니까? 지금까지 다음 코드를 가지고 있는데, 이제 버튼을 누를 때 어떻게 태그에서 태그를 가져 옵니까?부 풀린 Android 테이블에서 버튼 태그를 얻으려면 어떻게해야합니까?
TableLayout table = (TableLayout)findViewById(R.id.scheduleTable);
for (int i = 0; i < jlen; i++) {
// Inflate
TableRow row = (TableRow)LayoutInflater.from(UpdateScheduleActivity.this).inflate(R.layout.schedulerow, null);
((TextView)row.findViewById(R.id.attr_day)).setText(json_schedule.getString(KEY_DOW));
((TextView)row.findViewById(R.id.attr_start)).setText(json_schedule.getString(KEY_START));
((TextView)row.findViewById(R.id.attr_stop)).setText(json_schedule.getString(KEY_STOP));
((Button)row.findViewById(R.id.btnRemove)).setTag(sid);
table.addView(row);
}
table.requestLayout();