GoConqr has a new look! Let us know what you think.

Flashcards

Click listerner for list view

Deleted user User has deleted their subject information English 1 card

Cards in this deck (1)

  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
History
  • Created by Jason Manns · Nov 11, 2016
  • Copied by Jason Manns · Nov 13, 2016
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?