About 4,090,000 results
Open links in new tab
  1. How to add and use custom colors in an Android project - delasign

    Jun 12, 2023 · A step by step guide on adding and using custom colors in a Kotlin, Jetpack Compose, Android project using Android Studio.

  2. Android - how to set background color of all screens?

    A quick and easy way to make sure every activity has the same background color, is to create a theme for your activities to use. That theme would specify the android:windowBackground. First define the color in values/colors.xml

  3. android - Set Background color programmatically - Stack Overflow

    Jan 6, 2017 · If you just want to use some of the predefined Android colors, you can use Color.COLOR (where COLOR is BLACK, WHITE, RED, etc.): myView.setBackgroundColor(Color.GREEN);

  4. List of color names and color code for Android - Codexpedia

    The colors.xml below defines a list of colors as an Android color resource. The first part defines all the individual colors, and the second part defines a array of color items, each item in this array is referencing a color defined in the first part.

  5. How to change background color in android app - Stack Overflow

    May 1, 2010 · getResources().getColor(R.color.red). You can also use any drawable resource as a background, use android:background="@drawable/mydrawable" for this (that means 9patch …

  6. Set Background Color for All Activities via theme.xml in Android Studio ...

    Mar 13, 2025 · Setting the background color for all activities using theme.xml simplifies app design, ensures consistency, and saves time. By following this method, you can easily manage light and dark mode themes in your Android app.

  7. Select colors with the Palette API - Views | Android Developers

    Apr 16, 2025 · For example, you can use a palette to create a color-coordinated title card for a song based on its album cover or to adjust an app's toolbar color when its background image changes.

  8. How To Add Design At The Background In Android Studio

    Mar 14, 2025 · To set the background color to an Android Layout XML file, use the android:background attribute. You can specify the value as HEX color code, similar to CSS files.

  9. Android color for mobile design | Mobile | Android Developers

    Dec 12, 2024 · To set color values on Android, use hex code, which represents RGB in a 6-digit format. To capture opacity, append the value to the front to make an 8-digit code.

  10. .setBackgroundColor with Hex Color Codes AndroidStudio

    Sep 15, 2014 · I recommend using the Android version of Color for your case. If you've done that the statement targetView.setBackgroundColor(Color.parseColor("#FFFFFF")); should work.

  11. Some results have been removed
Refresh