Thank you Dan U. , Now I finally now how to use android.R.attr dynamilcally.
On 6 Apr., 21:11, "Dan U." <[EMAIL PROTECTED]> wrote: > Will this work: > > Button b = new Button(this, null, null, > android.R.attr.buttonStyleSmall); > > On Apr 6, 6:04 am, goro <[EMAIL PROTECTED]> wrote: > > > Hi All, > > I need to add dynamically buttons to a view. The buttons must be > > small, so I must style them with android:attr/buttonStyleSmall. I know > > how to do it in xml file, but how can I do it from java? > > Thanx, > > George --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

