Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. 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});
  2.  
  3. public class Adapter extends SimpleAdapter{
  4. HashMap<String, String> map = new HashMap<String, String>();
  5. public Adapter(Context context, List<? extends Map<String, String>> data,
  6. int resource, String[] from, int[] to) {
  7. super(context, data, resource, from, to);
  8. }
  9. @Override
  10. public View getView(int position, View convertView, ViewGroup parent){
  11.  
  12.  
  13. // You can customize here.
  14.  
  15. }
  16.  
  17. }
  18.  
  19. Adapter mAdapter = new Adapter(params);
  20.  
  21. ListAdapter k = new SimpleAdapter(...) {
  22. @Override
  23. public View getView (int position, View convertView, ViewGroup parent) {
  24. View view = super.getView(position, convertView, parent);
  25. ...
  26. return view;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement