suthra

Untitled

Sep 20th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. final AbsoluteLayout ab = new AbsoluteLayout(this);
  2.  
  3. TextView tv = new TextView(this);
  4. tv.setText("Suggestion Status More Info");
  5. ab.addView(tv);
  6.  
  7. lv1 = new ListView(this);
  8.  
  9. // lv1=(ListView)findViewById(android.R.id.list);
  10. lv1.setDividerHeight(12);
  11. ListAdapter adapter = new SimpleAdapter(this,mylist,R.layout.list, new String[] {"name","name1","values","zspin"}, new int[] {R.id.do_name,R.id.do_name1,R.id.do_value});
  12. lv1.setAdapter(adapter);
  13. ab.addView(lv1);
  14.  
  15.  
  16. Spinner [] spinnerp=new Spinner[10];
  17. for(int i=0;i<10;i++)
  18. {
  19. spinnerp[i]= new Spinner(this);
  20. ArrayAdapter<String> adap = new ArrayAdapter<String> (this,android.R.layout.simple_spinner_item,mspinner);
  21. spinnerp[i].setAdapter(adap);
  22. ab.addView(spinnerp[i]);
  23. }
  24. final CheckBox[] cbs = new CheckBox[5];
  25. for(int i=0; i<5; i++){
  26. cbs[i] = new CheckBox(this);
  27. ab.addView(cbs[i]);
  28. }
  29.  
  30. this. setContentView(ab)
Advertisement
Add Comment
Please, Sign In to add comment