Anything you can do in XML, you can do programmatically. The TextView
and Button documentation show both. Search the following link for
"Related Method".

        http://developer.android.com/reference/android/widget/TextView.html

You can also set the attributes in their constructors:

        TextView(Context context, AttributeSet attrs)
        Button(Context context, AttributeSet attrs)



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Oct 1, 12:36 pm, Ray da Costa <[email protected]> wrote:
> Someone knows how could do to generate a view with 01 TextView and a button
> without using the xml (R.java).?
> Which method of the view that receives the attributes (TextView and button)?
>
> --
> Ray da Costa
> "The best way to predict the future is to invent it."
> Alan Kay
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to