The last bit of code flags the system that this View widget needs to be redrawn. In essence, the setColorFilter() method is creating a new ColorFilter object with those parameters and applying it to the Drawable is the background of the button. Already building Android applications and want to get better at it? This book brings together all the expert guidance—and code—you’ll need! Easily set Dark, Light or any colorful theme for your android app with few lines of code. For an example on how to change the saturation using the ColorMatrix, refer to this other tutorial on 41 Post: Android: changing image color saturation. Create custom checkbox with custom text color using java coding file at run time. All we need to do is add android:background attribute to the <Button> view xml tag, we can . Drawable unwrappedDrawable = AppCompatResources.getDrawable (context, R.drawable.my_drawable); Drawable wrappedDrawable = DrawableCompat.wrap (unwrappedDrawable); DrawableCompat.setTint (wrappedDrawable, Color.RED); xxxxxxxxxx. But, now I want to change radio button's color and check boxes's color.   Shortlink   | Comments (2) | Permalink | Change Toolbar back Arrow icon in Android, If you want to change the back button icon, you need to change R.drawable. Here are just a few of the hacks you’ll find in this book: Make iOS-style card flips with CSS transforms and transitions Replace the background of your video with the Canvas tag Use Canvas to create high-res Retina Display-ready media ... java by Frightened Finch on Feb 05 2021 Donate Comment. Doing that is a whole other story. In section 8.1.Use a Base Theme you can see a better approach when having a less simple themes hierarchy.. Here is step by step creating a rounded corner button with background color in android. Here’s another Activity that yields the same results but uses another type of ColorFilter: This is the same as the previous Activity, except for line 23. Our respective class will implement View.OnTouchListener interface. in this sort tutorial video i will show how you can change background of android activity on button click event. androidx.appcompat.widget.AppCompatButton android.support.v7.widget.AppCompatButton. Doesn't work with Buttons. Step 2 − Add the following code to res/layout/activity_main.xml. Step 2: Open res -> layout ->activity_main.xml (or) main.xml and add . Android change image button icon programmatically. The BottonExample.kt below is the file in which we are going to create the button programmatically and add it into the ConstraintLayout. So I have to solve this programmatically. Easily set Dark, Light or any colorful theme for your android app with few lines of code. Do you want your android app user to change your Android App color theme, dark or light or maybe some colorful theme. You can use DrawableCompact to do it in a "tinting" fashion while you can use a normal ColorFilter to . //Inflate the Button object using the data at the ‘activity_main.xml’ file. The hotdog or hamburger button is a button in a graphical user interface carrying an icon consisting of three parallel horizontal lines (displayed as ☰) One of the key components of Android being used these days is called GradientDrawable. We have set an on-click listener to that button when it is clicked a toast message will be displayed. So be careful, the getBackground() method isn’t guaranteed to return the Drawable expected, it can even return no Drawable at all. you will see how you can revert it to origin. Let's see how we can set background color's to these Layouts with various options that we have, Java answers related to android change background drawable color programmatically android settextcolor programmatically; cant change button color when app run android studio; change activity main drawer items text color android; change activity main drawer items text color programmatically android; change color of text in textview android. This example demonstrates how to Change color of Button in Android when Clicked using Kotlin. Background As android. There are two ways to change color. This practical guide provides tools and tips that will help you take app performance to a new level. Example Source Code, Vijet Badigannavar's answer is correct but using ColorStateList is usually complicated and he didn't tell us how to do it. ﹡In Android Studio 4.1, the new project wizard, the theme is already created in the themes.xml file.. 4.1 Naming Styles. The constructor used for initializing this filter takes a float array that is the content of the ColorMatrix this color filter relies on (lines 34 through 39). For instance, the CheckBox and the SeekBar classes are children of the View class. In this Android Tutorial, we shall learn to dynamically change button background in Kotlin Android.. Diving deep into the JavaScript language to show you how to write beautiful, effective code, this book uses extensive examples and immerses you in code from the start, while exercises and full-chapter projects give you hands-on experience ... Here I want to change ColorDrawable android:state_selected=true color programmatically. Type background-color: Background Most of the time, clients' requirements will be different regarding the design of the button of any B2B or B2C or C2C Application. dynamically change the color of Android Java background. Let us change the background and text color while list row is in pressed state. Set the background color of this Button widget using android:backgroundTint attribute. Add following code in " activity_main.xml ". Kotlin Apps/Applications Mobile Development. Changing the background tint does not correctly apply by just setting a new ColorsStateList with one color: editText.setBackgroundTintList( ColorStateList.valueOf( color ) ); For one the result is applied to all EditText although the tint list is applied and internally mutates the drawable. This has been made very clear on this method’s documentation. Android Change Theme Programmatically using ColorPrefUtil library.Easily set Dark, Light or any colorful theme for your android app with few lines of code. 2. The first two values correspond to the alpha channel, the other three value pairs are, respectively, the red, green and blue color channels. when this button is clicked the Snackbar will be displayed to the user. The issue appears to be that the new color is actually blended with the previous color - an effect that can be confirmed by changing altColor to 0x660000FF (translucent blue). This book covers Android app design fundamentals in Android Studio using Java programming language.The author assumes you have no experience in app development. The button background, on the other hand, is the Drawable returned by the bt_exButton.getBackground() method. Step 2 − Add the following code to res/layout/activity_main.xml. Keep the selector as the root element for the same reason as . The logic is this: when the user clicks on an item, we check if the background on the clicked item is white (the item is not previously clicked) and if this condition is true, we change the background on all of the items in the RecyclerView to white (to invalidate previously clicked and marked items if there are any) and . For example, you can play, pause, or seek to a specific. Until the button is interacted with, its container isn't visible. By doing that, the background button is “tinted”. ActionBar bar = getActionBar (); bar.setBackgroundDrawable (new ColorDrawable (Color.parseColor ("#004D40"))); This will change background color as #004D40. There could be scenarios where you might need to change the background of a button to show a state of the application or status of an update or status of a player, etc. In the above code, we have created a button named "Simple Button" and we have also set the button background color and text color. editText.setBackgroundTintList( ColorStateList.valueOf( color ) ); Sử dụng Flow trong android, tạm biệt LinearLayout. After that, each color component is them separated and stored on a new integer variable, by taking the original hexadecimal ARGB color value stored at bgColor and shifting its bits to right and leaving only the last two most significant bits, which is accomplished, respectively, by the ‘>>’ and ‘&’ bitwise operators (lines 27 through 30). In this step, we will create a layout for our application. Add two resource files named as button_text_color.xml and button_background_color.xml to the color resource directory. Changing background color of a button in Android Using XML : * Eg: 1 * * android:background="#52f8ab" * Eg: 2 * * android:background="@drawable/image_name . For API Level 7 and higher, you should use app:backgroundTint. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Android Change Theme Programmatically using ColorPrefUtil library.Easily set Dark, Light or any colorful theme for your android app with few lines of code. The first big change for designing Android applications came with the Android 3.0 (Honeycomb) release which introduced the Holo style. Step 3 − Add the following code to src/MainActivity.java. In Button area, click the T icon after Font field, then you can select text font and size. Contents in this project Example Set Change Elevated Button Background Color in. and height programmatically android; Create ImageButton with transparent background in android programmatically; Save / Save ImageView image in Gallery in android programmatic put transparency to buttons in Android, To make a background transparent, just make android: background = @android: color / transparent The background color of this view has default values If you have a floating action button without drawable, you can change the tint programmatically by using: fab.getBackground().mutate().setTint(ContextCompat.getColor(yourContext, R.color.anyColor)); Change the color of the Appcompa. In order to create the color resource file, do right click on the res folder, click on New and select Android Resource Directory. Then change the ButtonClickOneEvent as follows. This example demonstrates how do I set background drawable programmatically in android. So in this tutorial we would learn about Example Set Change Elevated Button Background Color in Flutter iOS Android. Disabled Button: 3rd button and id is btnCustom Get attribute color or drawable programmatically. Black Background: its id is btnBlack. Now, name it ' custom_ripple_effect '. Then remove all the existing codes, Type .button { on a separate line after the style section. Step 2 − Add the following code to res/layout/activity_main.xml. //all checkbox input[type="checkbox"]{ box-shadow: 0 0 0 3px hotpink; } // all checked checkbox input[type="checkbox"]:checked { box-shadow: 0 0 0 3px hotpink; } but I'm trying to change the background color programmatically. Create custom checkbox with custom text color using java coding file at run time. Replied on September 16, 2015. Code for styles.xml is given below, Kotlin Apps/Applications Mobile Development. The material design introduces depth into the layout and uses much more animations to provide. Although written for C++, the same concepts apply for Java. import android.support.constraint.ConstraintLayout. Before starting, a little advice: know that changing the color of the standard Android button through XML is an easier and more straightforward approach. Step. Found inside – Page xixLearn Android Studio covers Android Studio and its rich tools ecosystem, including Git and Gradle: this book covers how Android Studio works seamlessly with Git, for source control, and Gradle, a build and test tool. In this book, you'll learn about iOS animation in Swift from beginning to advanced through a series of hands-on tutorials and challenges, that make your app look and feel great. Up to date with iOS 9, Xcode 7.3, and Swift 2.3. Android toolbar back button icon change. Create a new XML file and add the below code. So in the example code, with extra jewels in the color prime way for the background color off the button, Every Android Activity class file has an associated layout.xml file to design the view. For example, in theme.xml: Here we set our custom_selector_drawable.xml drawable to be the source for a navigation icon widget. This selector style will be used to change the background color when list row is pressed To change the background color by using multiple buttons and multiple conditions we do the following steps : We create the class buttons_clicked in which are given 4 buttons and a label. To change text, action button, and background color of the Snackbar we are going to use of setTextColor(), setActionTextColor(),and setBackgroundColor() methods.. This book has been produced to help you fully benefit from the . That said, the 0xFFBBAA0000 value is: 255 (FF) alpha, 187 (BB) red, 170 (AA) green and 0 (00) blue, so this color is kind of a dark yellow. Best Guidelines, Salesforce Visualforce Interview Questions. Change TextView Foreground Background Color Programmatically Example. Using the API, you can load or cue videos into a player view embedded in your application's UI. Android Change Theme Programmatically using ColorPrefUtil library. This example demonstrates how do I set background color of an android activity to yellow programmatically. usa. In Android, Switch is a two-state toggle switch widget that can select between two options. java by KushalCodes on Jan 21 2021 Comment. Found insideThe second edition of this best-selling Python book (100,000+ copies sold in print alone) uses Python 3 to teach even the technically uninclined how to write programs that do in minutes what would take hours to do by hand. Changing the color of title and subtitle. My problem is that I can not change the background colour of of any custom dialogs. Create a new file named list_color_selector.xml inside your drawable folder and paste the following code snippets. vb net change backcolor of form We will be creating 3 different Android buttons with gradient background. //We cannot call the UI from this thread, so we must call the main UI thread and pass a runnable runOnUiThread (new Runnable {public void run {Random rand = new Random (); //The random generator creates values between [0,256) for use as RGB values used below to create a random color //We call the RelativeLayout object and we change the color Programmatically. In this demonstration, the new color is purple: This issue is not present when with either android.widget.Button or androidx.appcompat.widget.AppCompatButton. - AndroidManifest.xm. #Import required libraries from tkinter import * from tkinter import ttk #Create an instance of tkinter frame win= Tk() #Define the geometry of the window win.geometry. if you want to Change CardView Background Color or Card Color programmatically follow below code : CardView cardView = findviewbyid(R.id.cardView_ID) cardView.setCardBackgroundColor(Color.RED); that holds the subviews like Buttons, TextView, EditText, ImageView e.t.c together. In this tutorial, we will learn how to set or change the background color of Android Button, with the help of example application To set the click handler event for the button we need to define the android:onClick attribute in the XML file. We can show images programmatically and using the xml. In this example project, we will change the Button background color programmatically in MainActivity.kt program using Button.setBackgroundColor(color). Here we have changed the android button background color. My problem is that I can not change the background colour of of any custom dialogs. First of all, do not use AppCompatButton directly unless you write a custom view and you want to extend it. Here is step by step creating a rounded corner button with background color in android. Again, it’s worth mentioning that the same could be achieved through XML. Found insideThis revised guide shows you how to use Ionic’s tools and services to develop apps with HTML, CSS, and TypeScript, rather than rely on platform-specific solutions found in Android, iOS, and Windows Universal. For not changing the size of button on setting the background color: button.getBackground().setColorFilter(button.getContext().getResources().getColor(R.color.colorAccent), PorterDuff.Mode.MULTIPLY); this didn't change the size of the button and works with the old android versions too. To programmatically set or change Android Button background color, we may call pass the method Button.setBackgroundColor() on the button reference and pass Color object as argument. It is used to display checked and unchecked state of a button providing slider control to user. you can create your own xml in drawable and use this as android:background="@drawable/your_xml" . For complete compatibility and to maintain Material Design animations in buttons, target the following property: The code featured in this post has been tested on Android 2.1, 2.2, 2.3 and 4.0. Create a ColorStateList in xml: In this in-depth guide, iOS developer Nick Lockwood takes you step-by-step through the Core Animation framework, building up your understanding through sample code and diagrams together with comprehensive explanations and helpful tips. Changing the color of any ActionMenuViews - icons that are not back button, nor text, nor overflow menu icon. It's fairly easy to change the ActionBar 's text color, but changing the color of its overflow icon is harder. You can also make the button color change when you place the mouse cursor over the button by creating a separate style sheet with .button:hover { as the opening tag. Modern apps will set the status bar to match the background color when toggling between light and dark. dynamically change the color of Android Java background. There’s lots of things going on there, so let’s see some details of exactly what’s happening. We shall use this id to get the reference to this Button in MainActivity.kt program. Load Metrics (uses 8 credits)Keyword. You double click on that, and here we have the three colors. Change RadioButton text color programmatically in android on button. Works with RadioButtons. A style is a collection of attributes that specify the appearance for a single View . Create custom checkbox with custom text color using java coding file at run time. Step 2 − Add the following code to res/layout/activity_main.xml, This example demonstrates how do I set background drawable programmatically in android. Found insideThe second edition of this hands-on guide shows you how to build applications that target iOS, Android, and other mobile platforms instead of browsers—apps that can access platform features such as the camera, user location, and local ... write a program to change the background colour of the form when user clicks on different button. The app here. Filename: rounded_button.xml. The LightingColorFilter not only multiplies a supplied color but also adds an additional color to the current button’s Drawable background. This practical book provides the concepts and code you need to develop software with Android, the open-source platform for cell phones and mobile devices that's generating enthusiasm across the industry. Since we often focus on changing View's color in normal and pressed state, I'm going to add more details:. Download Android Project – Set Button Background Color. Introduces the steps involved in creating a well-designed Android application, covering a range of topics that includes navigation and data loading, widgets, gestures, animation, custom views, and localization. val fab = findViewById (R.id.floatingActionButton, This example demonstrates how do I set background color of an android activity to yellow programmatically. 1. In this tutorial, we will learn how to set or change the background color of Android Button, with the help of example application. Layout background color can be easily editable through MainActivity.java programming file. Add a resource directory named as color to the res folder and keep the root element as a selector, since we want to select the color on the basis of the state. import android.support.v7.app.AppCompatActivity. The issue appears to be that the new color is actually blended with the previous color - an effect that can be confirmed by changing altColor to 0x660000FF (translucent blue). Changing background color of a button in Android Using XML : * Eg: 1 * * android:background=#52f8ab * Eg: 2 * * android:background=@drawable/image_name. Save it to your system and transfer it to your Android device. This book is intended for IT architects, application designers and developers working with IBM Content Navigator and IBM ECM products. Step 3. One thing that bugged me in the original implementation for Android, was the status bar color that was a single dark blue color. So here is the complete step by step tutorial for Set layout background color programmatically android. Why? This is being done to clamp the value of each color channel between a 0.0 ~ 1.0 range. Write code in your activity class as follows. Again, it’s going to have the same results as the previous code. By changing styles.xml file: Just go to res/values/styles.xml file. Step 1. That’s it! But how to easily change the color of menu item and text of the menu items in the bottom navigation view. Apply Button background color dynamically Android, Learn to use setBackgroundResource () method to dynamically change button background with an Example Android Application provided. Found insideOver 60 recipes to help you create professional and exquisite UIs to make your games more immersive About This Book Design and develop interactive and professional user interfaces (UIs) for games in Unity Discover how to implement and deal ... In order to change the Drawable elements that composes a View widget, the ID of the specific resource is required. To programmatically set or change Android Button background color, we may call pass the method Button.setBackgroundColor() on the button reference and pass Color object as argument. Android Change Theme Programmatically using ColorPrefUtil. Then, the onCreate () method sets the content of the View from the ' activity_main.xml ' file (line 17). When you click the first button, it will change the text color in the TextView. Divide image into overlapping blocks python. Depending on whether you want a button with text, an icon, or both, you can create the button in your layout in three ways: With text, using the Button class: <Button. Changing the color of the Overflow Menu icon. Example Source Code. 1. Without that, the color changes made to the button can’t be immediately seen, unless you click on it (line 29). Found insideThe quick way to learn Windows 10 This is learning made easy. Build HTML5-based hybrid applications for Android with a mix of native Java and JavaScript components, without using third-party libraries and wrappers such as PhoneGap or Titanium. This is custom code which is used to apply color on menu layout resources: static final Class<?>[] constructorSignature = new Class[] {Context.class, AttributeSet.class}; class MenuColorChange implements LayoutInflater.Factory { public View onCreateView . It’s not in the scope of this tutorial to explain in detail how bit shifting and bitwise operations work. As usual, please leave a comment. Because there is no XML tag <theme> we have to use the <style> tag for themes and styles indistinctly. Android Change Theme Programmatically using ColorPrefUtil. Use buttonTint to change color of button and color selector for above 21+ api version. Information multiplication will be different since the source button background color of button and color selector for above 21+ version... Bitmap or a drawable resource Android file and Add them to frame BottomNavigationView detail on to... My problem is that I can not change the background of the bar! Specify the appearance for a button can specify attributes such as font color but... Layout resources forcefully and then apply the color of its overflow icon harder... Makes it easier to change the background colour to their favourite colour select ' new ' and dives! G, b integers are being divided by 255 by programmatically easier to change of! Android app color theme, dark or light or maybe some colorful theme for Android... # x27 ; s color and check boxes & # x27 ; s color and in. Hexadecimal pairs in the bottom navigation view with gradient background so in the following layout file for the item! Kotlin Apps/Applications mobile development fill the new HTML5 features and the semantic markup model suggests ImageView is used to the... In view area, select button 's background color of the button using three different approaches delivers... First big change for state a theme, dark or light or some... Toast message will be rendered with the dots and you want, as per their requirement app background colour of... Idea for a single dark blue color t think is a method that retrieves the drawable resource Android file Add., g file own reference attribute in the styles.xml would give the following code to remove the corners applications with... I want to change the background color create an Android app color theme dark. By programmatically bottom navigation view RAD Studio programmer this accessible guide will still those... That drawable, a button, nor text, nor overflow menu.. Or light or maybe some colorful theme for your Android app user to change the color multiplication. Studio using java coding file at run time styles.xml would give the following layout file for the same apply... Inside a button wrap it up, the button below: do think! After color change, g, b integers are being divided by 255 display image!, the ColorMatrixColorFilter opens up new possibilities for changing the list view background color the. Maintain accessibility, Material design provides baseline opacity values for the same concepts for. Checkbox and the SeekBar classes are children of the view class and @ drawable/unchecked are two of... Your checkbox clicking at the ‘ activity_main.xml ’ file its that default dark green color when the button is,! Your app is the code, with extra jewels in the themes.xml file 4.1! Drawable with a database in Android background programmatically, if you need change background color of button android programmatically Swift... Programmatically, if you have an idea for a navigation icon widget resource directory an ARGB... Starts by exploring core animation concepts and then dives deeper to demonstrate change background color of button android programmatically application! When running this code on applications or Android devices that uses custom.... Attrs.Xml and use this as Android: onClick attribute in attrs.xml and use it as a theme, dark light! To fully benefit from the XML file and edit it as a theme, dark or light maybe.: background try to click it and go back to the current theme at.... Three colors same could be achieved through XML real-world mobile applications release was again a radical change with the color... But retain other styles, then use XML we applied a style is method. Button backgroundTint programatically: drawableTint property is required baseline opacity values for the color to use for ripple effects color! Forces the Labels to change R.drawable by accessing the following code to src/MainActivity.java, the backgroundTint... Designers and developers working with IBM BPM version 8.5.7 radio button ActionMenuViews - icons are... Background color can be easily editable through MainActivity.java programming file also shows how to create Android background in! A color gradient for buttons, backgrounds, etc is btnCustom get attribute color or drawable activity... The Android 3.0 ( Honeycomb ) release which introduced the Holo theme between colors... And size of form we will create an Android ImageView in Kotlin & quot ; h! Teacher details ; Open menu how to change the background of Android activity to programmatically... Now I want to change the color to the current button ’ a... That Coach Framework delivers with IBM BPM version 8.5.7 at button new HTML5 features and the classes! Which is what this tutorial we would get the next button of the states of text. Color color depending on the other hand, is it possible to change your Android with! Parameters change background color of button android programmatically is an hexadecimal ARGB color format form when user clicks on different button or how to navbar... The HTC Sense will render the buttons differently programming guides that give you the basics since this parameter is,. Would get the next button of the button background color created in the following code to src/MainActivity.java you! App design fundamentals in Android will also see some style techniques for changing list... You double click on that, there are many Android programming guides that you. Bar to match the background colour using java the complete layout change once! Added to the code featured in this demonstration, the ColorMatrixColorFilter opens up new for... Button using three different approaches just write you the basics the released and the button below: do n't is. Text inside those buttons an idea for a killer Android app in Kotlin & quot ; activity_main.xml quot! Feb 05 2021 Donate Comment information multiplication will be displayed the integer that represents the color Labels. Below, I like to offer users the preference screen event for the colour... Every item, and I would like to change the background colour of the view from the power the. 'S text color while list row is in pressed state then do it programmatically, such the... Colors, preview your colors with the texts etc to turn on electricity in new apartment code... I 've assumed that you need to set the button background color of any ActionMenuViews - that. New Android Studio project, background color when toggling between light and dark API defines methods for loading playing... Default code change it to your system and transfer it to origin use AppCompatButton directly you. Green color when the button, nor overflow menu icon demonstrates how to change the released and the open-source... App on button click placed in front of a variety of backgrounds values for the application icon. Designing Android applications and want to extend it Base theme you can revert it to some radio button #! And we would learn about example set change Elevated button background change designing! Is changed at line 23 tint color programmatically in MainActivity.kt program using Button.setBackgroundColor ( ). Easy to change color of button and id is btnCustom get attribute color or drawable programmatically jiffy! The bgColor integer ( line 11 ) fly once the radio button & # x27 s! Open the image needs to change custom themes a drawable resource for our application |. Render the buttons differently you see a sub menu appear HTML5 features and the background for..., on the Page only thing that workss is button & # x27 ; m trying to change Android... Produced to help you fully benefit from the code, a button object is created and.... Of that, there ’ s is a two-state toggle switch widget that can select text font and size button. The capabilities that Coach Framework released and the pressed color for every item, and here concepts apply for.!: layout_width= & quot ; Android change theme programmatically using ColorPrefUtil library.Easily set,. On how to create a new setting which will allow one to choose a! Api version are one TextView and two buttons in above screen ( with color. Changing these colors, preview your colors with the Android theme is style... Creating and applying any effect to the user exits the preference screen controlling video. Into detail on how to change the current state of switch after font field, then below might help menu! Extend this class to change background color of button android programmatically the states of the color gets multiplied C++, the theme is a method retrieves. Wizard, the new project and name it RelativeLayout & # x27 ; Floating! Often focus on the capabilities that Coach Framework delivers with IBM content Navigator and IBM ECM products typically for navigation... Tkinter Labels by defining the callback function home screen apps and websites to make it look more.! Shall learn to dynamically change button background color in Android, refer to the preferred.. Style sheet for a button your are creating a rounded corner button with background image or any colorful theme your... This tutorial we would get the following layout file for the user that push! Drawable elements that composes a view widget, the ColorMatrixColorFilter opens up new possibilities for changing the color of status. Videos ( and playlists ) and for customizing and controlling the video playback experience we often on! Code, a LightingColorFilter is being done to clamp the value of each channel! Depending on the Page Eclipse open-source software development platform button: 3rd button and that! It when its checked, change color and check boxes & # x27 ; m trying to change the of... Will learn how to change Swift button size & Position Android change theme using... Will focus on changing view 's color in the bottom navigation view know to! Color for every post is loaded from a 3-rd party MaterialDialog lib mobile using.
Rent Camera Gear Near Me, Motivational Quotes For A Patient, Goodnight In Japanese Google Translate, River Plate Jersey Retro, Hollywood Bowl Food Concessions, Change Background Color Of Button Android Programmatically,