Saturday, December 10, 2011

[android-developers] How can i Assign a id to view Programmatically?

Hi All;

I know it is basic but i am curios about that.

in xml file, we are assigning id to view like that "android:id="@+id/
something" and we are calling findviewbyid() but when i want to
create a layout programmatically in a class and when i add a view, how
do i assign default id "android:id="@+id/something" like that.

I think setid() is not same to default assignment.Setid() is extra.

Can anybody correct me?

Thx.

Duygu Kahraman

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate