Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9218779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:56:31+00:00 2026-06-18T02:56:31+00:00

For a personnal app where the user will be able to draw on a

  • 0

For a personnal app where the user will be able to draw on a whiteboard, I need to have a dynamic background on an icon.

It’s a kind of paint bucket where the user will be able to select the color of his choice. Basically, when the user clicks on the button, a color picker dialog appears and he can select one. I need the icon background to change with the given color.

My button looks like that:
enter image description here

I need the red color to change to the new one when the user has clicked on the valid button in my dialog. And to add a border on that button after to tell the user this option is selected.

Is there a way to do that programmaticlly or not ? If so how ?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:56:32+00:00Added an answer on June 18, 2026 at 2:56 am

    Look to Drawable#setColorFilter.

    You can actually use:

    Drawable.setColorFilter( 0xffff0000, Mode.MULTIPLY ).
    

    This set white pixels to red, where the color format is ARGB.

    If it wont work try a more brute solution: https://stackoverflow.com/a/1715673/821054

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an app that will allow the user user to view the contents
I have created an app that simply shows the user's current position on a
Hey I'm building an app that will allow a user to log into a
I'm making an app with a User model that will use devise for authentication.
I have written a personal web app that uses charCodeAt() to convert text that
Background: I'm trying to build a web app (as a personal project using modern
I started an app that was initially a testing platform--user management, and managers that
I have a website, and I need it to post status updates to a
I want to perform search on any column of the table which user will
I am new to box API. I have created an universal iOS app for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.