sm1, I'm confused by the example code you provided (the EditText
block).  Which parts of the text are to be interpreted literally, and
which are just placeholders for values?  I only ask because I don't
see any specific color defined.

On Mar 11, 5:18 pm, sm1 <[email protected]> wrote:
> an example of what Mark had in mind, I think:
>
>     <EditText
>         android:id="@+id/entry"
>         android:layout_width="fill_parent"
>         android:layout_height="wrap_content"
>         android:background="@android:drawable/editbox_background"
>         android:layout_below="@id/label"/>
>
> also you could use Java code, such as in this example for a subclass
> of Dialog, such as an AlertDialog instance:
>
>   getWindow().setBackgroundDrawable( new ColorDrawable
> (Color.DKGRAY) );
>
> Note that the last technique is not guaranteed to be supported over
> the long term.
>
> Romain Guy from Google had a nice post recently on performance issues
> for 
> backgrounds:http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-...
>
> serge
>
> On Mar 11, 1:26 pm, Mark Murphy <[email protected]> wrote:
>
> > AJ wrote:
> > > I'm a complete newb here (got a Hello World app working, but otherwise
> > > my mind is a blank slate as far as Java goes), but how do you set the
> > > background color for an application that will utilize nothing but text
> > > and simple shapes?
>
> > Put an android:background attribute on the appropriate elements of your
> > layout XML. It can either be a simple color or a reference to a Drawable
> > resource (e.g., PNG, gradient).
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~---------~--~----~------------~-------~--~----~
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