Answers for "android java get value from listview item"

0

android java get value from listview item

lv.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView<?> parent, View view,
        int position, long id) {
      // When clicked, show a toast with the TextView text
      Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
          Toast.LENGTH_SHORT).show();
    }
  });
Posted by: Guest on April-17-2021

Code answers related to "android java get value from listview item"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language