[Solved] How to change an Image in a button on clicking the button?
A Xamarin/C# way: var button = FindViewById<Button>(Resource.Id.myButton); button.Click += delegate { button.Text = “Some New Text”; // If your image is a Drawable button.SetBackgroundResource(Resource.Drawable.button_background); // From an asset button.Background = Drawable.CreateFromStream(Assets.Open(“button_asset.jpg”), null); // From an arbitrary path button.Background = Drawable.CreateFromPath(“/sdcard/Download/downloaded_file.jpg”); }; Update: If you are using drawableLeft, drawableRight, etc… in your layout, you can change … Read more