|
Criado por Jason Manns
quase 8 anos atrás
|
|
|
Copiado por Jason Manns
quase 8 anos atrás
|
|
Questão | Responda |
You 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); } |
Quer criar seus próprios Flashcards gratuitos com GoConqr? Saiba mais.