Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyAD extends ArrayAdapter<SvinPauk20.WorldMap> {
- private Context mContext;
- private ArrayList<SvinPauk20.WorldMap> myList = new ArrayList();
- public MyAD(Context context, ArrayList<SvinPauk20.WorldMap> list) {
- super(context, 0, list);
- mContext = context;
- myList = list;
- }
- @Override
- public View getView(int position, View convertView, ViewGroup parent) {
- View listItem = convertView;
- if (listItem == null)
- listItem = LayoutInflater.from(mContext).inflate(R.layout.layoutr, parent, false);
- SvinPauk20.WorldMap Map = myList.get(position);
- TextView name = listItem.findViewById(R.id.textView);
- name.setText(Map.getcountryW());
- TextView release = listItem.findViewById(R.id.textView2);
- release.setText(Map.getcityW());
- return listItem;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement