Skip to content

Instantly share code, notes, and snippets.

@devrath
Created November 24, 2014 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devrath/411969a1f38db0c509c6 to your computer and use it in GitHub Desktop.
Save devrath/411969a1f38db0c509c6 to your computer and use it in GitHub Desktop.
Getting the textview in adapter of listview from the class
listviewone.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view,int position, long id) {
TextView mText = (TextView) view.findViewById(R.id.title);
String value= mText.getText().toString().trim();
String str =(String) ((TextView) view.findViewById(R.id.title)).getText();
Log.d("", "");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment