我有一份清单,我需要更新具体行文的内容,而不重载所有清单内容。 名单 观点可能很大。
例如(简而言之),我需要将案文意见的内容(改编者中的标签3)改为适应者的X立场。 实际上,我与调通商(通辑)调适者合作。
class IconicAdapter extends ArrayAdapter<FavoriteObject> {
IconicAdapter() {
super(FavoritesMainActivity.this, R.layout.favbusrow, array);
}
public View getView(int position, View convertView,ViewGroup parent) {
View row=convertView;
LayoutInflater inflater=getLayoutInflater();
ListFav lf = (listFav) array.get(position).getContent();
row=inflater.inflate(R.layout.favrow,parent, false);
row.setBackgroundColor(Color.WHITE);
TextView label=(TextView)row.findViewById(R.id.busNameF);
label.setText(lf.getName());
label.setTextColor(Color.BLACK);
label.setTypeface(FontsManager.getBoldFont());
TextView label2 =(TextView)row.findViewById(R.id.busNumberF);
label2.setText(lf.getNumber());
label2.setTextColor(Color.BLACK);
label2.setTypeface(FontsManager.getBoldFont());
TextView label3 =(TextView)row.findViewById(R.id.busDirectionF);
label3.setText(lf.getQuickName());
label3.setTextColor(Color.BLACK);
label3.setTypeface(FontsManager.getRegularFont());
return(row);
}
}
有些人有想法?
感谢!