Flashcards
Click listerner for list view
Cards in this deck (1)
- 1You have a ListView of names set up that displays a list of 10 usernames. Write the click listener so when a named is clicked a new activity is started and and sent which name was clicked.@Override
public void onItemClick(AdapterView parent, View view, int position, long id) {
Intent intent = new Intent(getApplicationContext(), Profile.class);
intent.putExtra("friend", friends.get(position));
startActivity(intent);
}
Information
- Description
- User has deleted their subject information Flashcards on Click listerner for list view, created by Deleted user on 13/11/2016.
- Created by
- Deleted user · Nov 2016
- Updated
- Nov 14, 2016
- Views
- 44
- Tags
- History
-
- Created by Jason Manns · Nov 11, 2016
- Copied by Jason Manns · Nov 13, 2016
- Rating