@Override public View getView(int position, View convertView, ViewGroup parent) { HolderView holderView; if (convertView == null) { holderView = new HolderView(); convertView = inflater.inflate(R.layout.item_list_for_right, null); holderView.name = (TextView) convertView.findViewById(R.id.item_list_for_right_name); convertView.setTag(holderView); } else { holderView = (HolderView) convertView.getTag(); } holderView.name.setText( BaseApplication.getInstance().getBusinessTypesRight().get(position).getName()); return convertView; }
@Override public int getCount() { return BaseApplication.getInstance().getBusinessTypesRight().size(); }