Re: [android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-08 Thread Thomas Fazekas
a String so all you have to do is cast it to string rather > than using toString() on it > > String buttStr = (String) view.getTag(); is what you need > > On Aug 7, 2016 3:35 AM, "Thomas Fazekas" <thomas@gmail.com > > wrote: > > Dear all, > > he

[android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-07 Thread Thomas Fazekas
Dear all, here is what I want to do : declare a whole bunch of buttons in the activity_main.xml each of them having one custom tag (in this case it's called "tag"). All the buttons would share the same onClick handler, where I would use this custom property value to construct some strings (a

[android-developers] button onClick handler retrieve custom attribute value declared in activity_main.xml

2016-08-07 Thread Thomas Fazekas
Dear all, here is what I want to do : declare a whole bunch of buttons in the activity_main.xml each of them having one custom tag (in this case it's called "tag"). All the buttons would share the same onClick handler, where I would use this custom property value to construct some strings (a