android studio – Change the color of buttons with drawable

I have three xml for three types of buttons.

I develop a small quiz on Android and I designed the above XML to evaluate the responses and display the color of the button based on the answer.

boton_redondo: default for all buttons
boton_redondo_error: If the answer is wrong
correct_right_button: if the answer is correct

The problem is that I do not find the right instruction to change the color of the button when I click. I'm trying with that:

& # 39; & # 39; & # 39; r1.setBackground (getDrawable (R.drawable.boton_redondo_error))); & # 39; & # 39; & # 39;

Someone who can help me with that?

DS

[GET] Basics of Color Theory: Learning Color Theory with Adobe Color


  1. QOM

    QOM
    New member


    joined:
    April 26, 2019
    posts:
    24
    I like receipts:
    0
    Trophy points:
    1

    Do you want to create a profession logo, print or website for your company or client? Do you want to better understand how each color affects your audience? Learn how to use color theory concepts with Adobe Color to create a deeper and richer experience for your audience. In this course, you will learn how to apply the concepts of color theory to your multimedia, graphic, artistic and other projects. This course is designed to be detailed but to the point. We will cover all the information you need to start using the concepts of color theory in your current work.
    https://www.udemy.com/color-theory-…theory-with-adobe-color/?couponCode=FREE_6_20


  2. QOM

    QOM
    New member


    joined:
    April 26, 2019
    posts:
    24
    I like receipts:
    0
    Trophy points:
    1

    Link updated: https://www.udemy.com/color-theory-…ory-with-adobe-color/?couponCode=BLACKHATTEAM

Trump tells liberal congress women of color to return to their country | Promotion Forum

"WASHINGTON (AP) – US President Donald Trump has strongly criticized Liberal Democrats, and said four women of color should return to" infidel "countries, ignoring the fact that all the women are US citizens and three were born in the US His attack provoked a blistering condemnation from the Democrats who described the remarks as racist and divergent breathtaking.

After a familiar scenario, Republicans remained largely silent after Trump's morning defamation against the four women. But the president's nativist tweets led the Democrats to put aside their internal divisions to rise up against the president. "

————————————————– ————————————————– ————-

So we have a president who said that there were "very good people from both sides" during the riots in Charlottesville and who is now calling a group of Liberal women of color who are ALL NATURAL-BORN CITIZENS to return in their country. There are at least four white men in Congress who are not born in the United States. Why does not Trump call them? I wonder why …

Have we ever told whites that they could not drink in a fountain or sit at a lunch counter because of the color of their skin?

One of my uncles has already been accused of having danced with a black woman in a Belgian cafe, around August 1945. A colonel from the Great South thought that it was unfit for an officer and was actually made stop!

Understand that my uncle enlisted in the Canadian Air Force in 1939 and was transferred to ours when we finally joined the war. He had served nearly seven years and was a serious veteran. The charges were dropped as soon as a real soldier saw them, but it is obvious that racists are everywhere.

.

javascript – How can I get the background color of my page via the console?

According to SO Teemu's answer in English

You can get there with the use of the method getComputedStyle () which you can read more here: getComputedStyle ()

As following:

let color = window.getComputedStyle (document.body, null) .getPropertyValue ('background color');
console.log (color)

What this method does is to return an object, from which you can access all the CSS properties of the element in question.

References:

javascript – Color coding list item per Web Part based on value

I'm currently trying to code colors on a list to highlight good and bad properties.

I've tried to follow the examples shown here for color-coding: SharePoint 2013 client-side rendering: List Views

As well as here:
Line of color code item based on the column value in SharePoint Foundation 2013

I can not understand why none of the approaches work for me. I placed it as a webpart on the site and I was able to test that I could edit the tables by simply adding a footer text. But it must be something about reading the custom field.

The last one I used in the webpart was:


Conditional formatting if cell A is in a range of numbers to give cell B a different color

I'm trying to create a conditional format that, if an "A" cell is in a range of two numbers, then cell "B" will change color. Google Sheets. Please help.

Special conditional formatting if cell A is in a range of numbers to give cell B a different color

I'm trying to create a conditional format that, if an "A" cell is in a range of two numbers, then cell "B" will change color. Google leaves. Please help. Thank you

color – Draw the attention of the main button in competition with the header

I am looking for help with our primary color. We use blue as the primary color and we have placed it in the header to strengthen the brand identity.

On the other hand, blue is also our main button color. Setting up our CTAs was easy, until today.

With our list view, I tend to place it directly under the header. The problem: the focus is lost because the attention of the button is less efficient due to its immense use by the header.

Do you know how to replace the button or change the style to make it more attractive?

Putting it on the bottom right should be the last solution because we have reserved the bottom right corner for a chat / support button.

Thank you together 🙂

Example of the primary color problem

image quality – Is the color profile detection on mac and windows different?

I just wanted to know if anyone had noticed or checked if the color profiles differed between mac and widows. I've checked a photo that was sent by a customer and the color representation is not set in the windows. She checked her side and she said the picture on her side indicated that it was sRGB.

I hope someone sees it and can provide more information.

Thank you!