Re: [android-developers] Setting button color in Java but the button color does not reliably change?
try something like this.... it will work
<Button android:layout_height="wrap_content" android:text="Button"
android:layout_width="wrap_content" android:id="@+id/button1"
android:background="#006400"
android:layout_marginTop="52dp"></Button
On Fri, Jan 6, 2012 at 9:50 AM, TreKing <trekingapp@gmail.com> wrote:
On Tue, Jan 3, 2012 at 12:32 PM, Carl <cwmoser@gmail.com> wrote:
It appears I need a display refresh or something like VB.NET's Application.DoEvents()
Got any ideas?
http://developer.android.com/reference/android/view/View.html#invalidate()
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home