View v = null;
if (item.flag.equals("0")) {
v = Inflater.inflate(R.layout.row, parent, false);
ImageView icon = (ImageView)v.findViewById(R.id.phone);
body = (LinearLayout) v.findViewById(R.id.body);
check = (CheckBox) v.findViewById(R.id.check);
TextView date = (TextView) v.findViewById(R.id.date);
TextView place = (TextView) v.findViewById(R.id.place);
date.setText("Date " +item.date + " "+item.time);
place.setText("Place "+ item.place);
} else {
v = Inflater.inflate(R.layout.row2, parent, false);
ImageView icon = (ImageView)v.findViewById(R.id.device);
TextView ddate = (TextView) v.findViewById(R.id.ddate);
TextView dpower = (TextView) v.findViewById(R.id.dpower);
TextView dwave = (TextView) v.findViewById(R.id.dwave);
ddate.setText("Date " +item.date + " "+item.time);
dwave.setText("Wave "+ item.wave);
dpower.setText("Power "+ item.power);
}