01.
if
(objLstSearchItem.isEmpty())
02.
{
03.
return
;
04.
}
05.
06.
TableRow.LayoutParams paramsRight =
new
TableRow.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
07.
paramsRight.setMargins(
1
,
0
,
1
,
0
);
08.
09.
for
(Class_MItem temp:objLstSearchItem)
10.
{
11.
final
TableRow tr2 =
new
TableRow(Que_Activity.
this
);
12.
13.
14.
TextView b =
new
TextView(Que_Activity.
this
);
15.
b.setLayoutParams(paramsRight);
16.
b.setWidth(
150
);
17.
String str = String.valueOf(temp.getItemCode());
18.
b.setText(str);
19.
b.setTextSize(
15
);
20.
b.setMaxLines(
1
);
21.
tr2.addView(b);
22.
23.
24.
tbDetailSearch.addView(tr2);
25.
26.
final
View vline1 =
new
View(Que_Activity.
this
);
27.
vline1.setLayoutParams(
new
28.
TableRow.LayoutParams(LayoutParams.MATCH_PARENT,
1
));
29.
vline1.setBackgroundColor(Color.WHITE);
30.
tbDetailSearch.addView(vline1);
31.
32.
}
33.
แล้วก็ dismiss progressDialog