Can i get the id of the same textview outside onclick event?

On Tuesday, March 27, 2012 5:05:37 PM UTC+5:30, Mahabaleshwara Adiga wrote:
>
> Hi, I am using ListView CustomAdapter and i had placed the values in 
> ListView. 
> When i am clicking particular row in listview, i want to extract the 
> textview values of that corresponding row. 
> How to get these values..??? 
>
> Plz Help me.. 
>
> I am using these code 
>
>  public void onItemClick(AdapterView<?> arg0, View arg1, int position, 
> long id) { 
> Toast.makeText(getBaseContext(), "List is 
> clicking...!!!!!--"+position, Toast.LENGTH_LONG).show(); 
>
> TextView tv = (TextView)findViewById(R.id.videoId); 
>                     String genus = tv.getText().toString(); 
>
> } 
>
> This will returns  " first value " of the ListView.. i.e first row 
> value.... 
>
> Help me..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to