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 7668525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:23:09+00:00 2026-05-31T15:23:09+00:00

For example, if I set the background color to be #FF0000, I expect a

  • 0

For example, if I set the background color to be #FF0000, I expect a bright red. However, I’m getting a dark red. If I set the background to #FFFFFF, I get gray instead of white.

I noticed that if I switch the theme for the application from dark to light, then all of the colors start showing up lighter than what I expect, so red goes to a washed out red, and black goes to gray.

Does anyone have any idea why this is happening?

More info: here’s my layout:

(I’m trying to change the background of the TextView from black to white when it’s clicked.)

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

    <ListView android:id="@+id/wordList"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1.0" />

    <TextView android:id="@+id/addButton"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:padding="10dp"
        android:textSize="20sp"
        android:textStyle="bold"
        android:gravity="center_horizontal"
        android:background="@color/black"
        android:text="@string/add_button"
        android:textColor="@color/white"
        android:clickable="true"/>  

</LinearLayout>
  • 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-05-31T15:23:11+00:00Added an answer on May 31, 2026 at 3:23 pm

    You are missing the alpha channel. The colors are in the format #AARRGGBB where AA is the transparency. For bright opaque red you should try #FFFF0000.

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

Sidebar

Related Questions

<table> <tr><td test=1>aa</td><td test=2>bb</td><td test=3>cc</td></tr> </table> Is possible set css, for example background-color:red for
Example Set for all divs with ids starting obj_ a black background color. Is
is it possible to use a url to set background for framelayout ? Example:
How is this done? For example, if I were to set the background at
I've set up a very simple example with LINQ-TO-SQL in WPF. I can get
I need to set/get the cookies stored at first.example while browsing second.example , I
I'm trying to find out how to set UITableViewCell background color to the grey
Possible Duplicate: given a background color, how to get a foreground color that make
How to change background color of GtkTextView? I tried with normal widget set bg
When I set the background color of a , it will appear with that

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.