Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. TweetListAdaptor adaptor = new TweetListAdaptor(this,R.layout.list_item, tweets);
  2. setListAdapter(adaptor);
  3. ListView lv = getListView();
  4. lv.setTextFilterEnabled(true);
  5. lv.setOnItemClickListener(new OnItemClickListener()
  6. {
  7. public void onItemClick(AdapterView<?> parent, View view,int position, long id)
  8. {
  9. //here i want to get the items
  10. }
  11. });
  12.  
  13. public void onItemClick(AdapterView<?> parent, View view,int position, long id){
  14. something = tweets[position];
  15. }
  16.  
  17. public void onItemClick(AdapterView<?> parent, View view,int position, long id)
  18. {
  19. Toast.makeText(getApplicationContext(), tweets[position], Toast.LENGTH_SHORT).show();
  20.  
  21. }
Add Comment
Please, Sign In to add comment