I developed a simple app on my Droid (os v2.2.2). The homepage layout
has 4 buttons on it that display the default gradient gray
background. Everything looks great. When I install the app on any of
our in-office Motorola DroidX phones (os v2.2 and v2.2.1), the buttons
are dark with no gradient.
The buttons are defined as follows:
<Button android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:id="@+id/mMenuKCMcom"
android:paddingTop="20px"
android:paddingBottom="20px"
android:textSize="28px"
android:layout_marginTop="20px"
android:layout_marginBottom="20px"
android:layout_marginLeft="70px"
android:layout_marginRight="70px"
android:text="@string/kcmDotCom"/>
I've combed the forums, created a new hello world default project and
added a single button to confirm that it wasn't something goofy I did
in my app, and even tried manually setting the background color of the
button (see below).
v.getBackground().setColorFilter(Color.parseColor("#DDDDDD"),
PorterDuff.Mode.DST);
Everything always looks great on the Droid, but all buttons look dark
and lack gradient on the DroidX phones.
Any advice???
Mark
--
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