Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ListAdapter k=new SimpleAdapter(this,val1,R.layout.mytask,new String[]{"TaskId","heading","status"},new int[]{R.id.View1,R.id.View2,R.id.ViewStatus});
- public class Adapter extends SimpleAdapter{
- HashMap<String, String> map = new HashMap<String, String>();
- public Adapter(Context context, List<? extends Map<String, String>> data,
- int resource, String[] from, int[] to) {
- super(context, data, resource, from, to);
- }
- @Override
- public View getView(int position, View convertView, ViewGroup parent){
- // You can customize here.
- }
- }
- Adapter mAdapter = new Adapter(params);
- ListAdapter k = new SimpleAdapter(...) {
- @Override
- public View getView (int position, View convertView, ViewGroup parent) {
- View view = super.getView(position, convertView, parent);
- ...
- return view;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement