Success. Using your guidance above I did the following:
1. Created a simple gif gradient image "sliver" (named button_bg.gif)
to use as the button image background and stored it in the drawable
folder(s).
2. Created a custom buttonstyle.xml file with the follow contents and
stored in the drawable folders(s).
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/
android">
<item android:drawable="@drawable/button_bg" />
</selector>
3. Referenced the button background override in my layout xml file as
shown below:
<Button android:layout_height="wrap_content"
.....
android:background="@drawable/buttonstyle"
android:textColor="#000000"
......
/>
The end result was an override of the DriodX button theme (white text
on dark button).
The end result can probably be improved upon but this solution seems
to allow for a consistent layout button color scheme across different
android devices. Being that I am a newbie at this, there it probably
a more efficient way of accomplishing the desired goal so I will
continue to research related solutions. However, this one appears to
be viable so far.
Many thanks for the quick responses.
Mark
On Apr 8, 3:03 pm, Marke2112 <[email protected]> wrote:
> Thank you for the feedback. I would have expected the
> "setColorFilter()" call referenced above to have acomplished the color/
> gradient override but clearly it did not. I will attempt to locate
> the standard button theme from the SDK and then use it to override the
> dark theme of the DroidX.
>
> Should I strike out, I may return and beg for a hint. :-)
>
> Thanks again.
>
> On Apr 2, 10:59 am, Kostya Vasilyev <[email protected]> wrote:
>
>
>
> > It is. The Droid X uses a very distinctive dark theme.
>
> > Perhaps rather than using the #CDCDCD literal value, one could look up some
> > similar color in the theme. Then on the Droid X it might be something that
> > fits with the overall color scheme of the device.
>
> > -- Kostya
>
> > 2011/4/2 lbendlin <[email protected]>
>
> > > I thought this stuff is heavily influenced by the theme that is either
> > > preinstalled on the device or selected by the user.
>
> > > --
> > > 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]
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en