set on click listener to the text that enough On 5/8/12, Andreas Bratfisch <duskma...@googlemail.com> wrote: > Simply implement a ArrayList with all your TextViews included, > ArrayLists does have fast access through Iterators, this is the way > as GridViews are working with. In your TableView add the TextViews > with the index parameter and get the TextView with the index. > Give your TextView the index key as tag and later you know what index > you have to get from your ArrayList. > > Another idea i have is to implement a ArrayAdapter, its the same way. > > Its a idea only, no clue if its fast enough ;) > > > -----Ursprüngliche Nachricht----- > From: Eran > Sent: Monday, May 07, 2012 6:14 PM > To: Android Developers > Subject: [android-developers] how to get info from a clicked textView? > > i set up a TagActivity that has 4 tags, each tag sets the content of > a large tableView that holds about 15 textViews > > Im trying to find a way to get the tag info aswell as the textView > info as a return String > now i can basicly compare all of the 60 ids one by one, but it seems > too long. is there any other way? > there was no getText from the selected view, and i cant do much with > the id unless i compare it to the r.id > > so how can i know which textView i'v clicked? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en