Hi,

for my own clarity i've created a "node" xml with a button and two
text view.

Every button has a static id in the xml layout, but i add the node
dymanically in the code with an Inflate and an AddView on a
LinearLayout.

Now.

I'd like to change the button id so that it turn into an incremental
id:
"android:id = id/myname_1"
"android:id = id/myname_2"
"android:id = id/myname_2"
.
.
.
android:id = id/myname_N"

Is there a way to do that?

I mean, i could set the id with the setId() itself, after grabbing the
object, but what happens if the id clashes?

Thanks a lot and bye.

-- 
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