You can make your own class which extends LinearLayout and inside of it you
should use this.setBackground....after you do this you must add your layout
to your activity. I'm not sure if its corect beaceause i don't know if an
activity can support two layouts but it is a view so it should.
Class MyLayout extends LinearLayou
{
Button button;
Context context;
Public MyLayout(Context context_)
{
context = context_;
button = new Button(context);//you can get context with
getApplicationContext on your activity
LinearLayout.LayouParams button_params = new LinearLayout
LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT);
addView(button,button_params);
SetBackgroundDrawable(...);
}
} after you add this obect to your activity..hope will help you a bit..
On Aug 9, 2009 3:32 AM, "Hamed3d" <[email protected]> wrote:
Anyone?I really appreciate any helps.
--~--~---------~--~----~------------~-------~--~----~ You received this
message because you are subs...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---