Created
November 24, 2014 06:47
-
-
Save devrath/411969a1f38db0c509c6 to your computer and use it in GitHub Desktop.
Getting the textview in adapter of listview from the class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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