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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:05:24+00:00 2026-06-05T12:05:24+00:00

Is there any method to set the default style for group of control of

  • 0

Is there any method to set the default style for group of control of android like if i set color for checkboxes and also for edittext then it applies like in css

In my app i’m enabling and disabling some control conditionally so i want to change their color can i create a style that change color for all control without applying to each and specific.

  • 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-05T12:05:25+00:00Added an answer on June 5, 2026 at 12:05 pm

    I am not aware of such thing in Android but you can create a custom background like this:

    <?xml version="1.0" encoding="utf-8"?>
    

    <gradient android:angle="1dp"
        android:centerColor="@color/sky_blue" 
        android:endColor="@color/white"
        android:startColor="@color/white" />
    

    Declare this file as say backgrnd.xml in drawable folder and when you want to give background to any view just use: android:background="@drawable/backgrnd"

    Each view will then have same background like this.

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

Sidebar

Related Questions

Is there any method in SWT to programmatically set my plugin as default whenever
For any given NSManagedObject, is there any method to return a set or array
Is there any method available to add IDs like there is for adding a
Is there any method to preview Excel files on XP besides WebBrowser control? How
Is there any method like the array_unique for objects? I have a bunch of
Is there any section or code which allows us to set default page in
author = models.ForeignKey(User) Is there any way I can set the default value of
Is there any method I can get the full JSON data from jqGrid when
Is there any method to rename a div element. I have a div with
Is there any method / API defined to collect system info in osx. I

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.