fermyth

Add next button after listview

Aug 25th, 2011
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. final MelonTask task = new MelonTask(this, this, lv, names, dataSelected, new Button[]{buttonPrev, buttonNext}, new int[]{offset, limit});
  2. task.execute(new String[] {"http://118.98.31.132:8000/mapi/chart/weekly/latest?limit=" + limit});
  3. View footerView = ((LayoutInflater)this.getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.next_back, null, false);
  4. lv.addFooterView(footerView);
  5.  
  6. Button buto1 = (Button)findViewById(R.id.button1);
  7. buto1.setOnClickListener(new OnClickListener() {
  8.  
  9. @Override
  10. public void onClick(View v) {
  11. // TODO Auto-generated method stub
  12. Toast.makeText(v.getContext(), "masuk gak", Toast.LENGTH_LONG).show();
  13. }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment