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

  • Home
  • SEARCH
  • 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 7934085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:32:06+00:00 2026-06-03T21:32:06+00:00

I am building a sample application based on latest version of Android OS..As per

  • 0

I am building a sample application based on latest version of Android OS..As per instructions given here I am trying to give holo:light theme to only one button in my application. How do i do it ? I have created a myStyles.xml in res/values folder but I am not able to find property to apply holo-light theme.

This is what i have in myStyles.xml file

<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="mybutton" parent="android:Theme.Holo.Light">
    <item name="android:background">@android:color/holo_orange_light</item>
    <item name="android:textColor">@android:color/holo_blue_dark</item>
</style>
</resources>

this is i have in my activity.

<Button
        android:id="@+id/button1"
        style="@style/mybutton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="lol" />

I can confirm that backgroundcolor and textcolor are getting applied…(done this for testing purpose).
Currently, If i add android:theme=”@android:style/Theme.Holo.Light” to AndroidManifest.xml, holo light theme is applied to entire application. However, I want this theme to be applied for only few controls ( in this case a single button control).

  • 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-03T21:32:07+00:00Added an answer on June 3, 2026 at 9:32 pm

    A theme is a style applied to an entire Activity or application, rather than an individual View.

    Thus, what you are asking for is not possible. That being said, it seems odd that you would want to do this anyway. I suggest applying the holo theme to your entire app, and then customizing your Buttons only if you really need to. This is probably what the user will expect from your application.

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

Sidebar

Related Questions

I am building an application that is based on MVVM-Light. I am in the
I'm building a simple web based forum application. I want to allow users to
Well, lets say I'm building ActiveMQ based chat application. It's pretty simple. Having only
I'm building a Zend-based Web app that will permit third-party extensions. Essentially, this application's
Currently I am building a sample application which is supposed to read a moderately
I am building an application, which has an application based front-end in C++/Qt and
Newbie question here! I'm building a simple application that allows users to create and
I am building an application based on distributed linear algebra using Trilinos , the
I am new to iPhone programming and Objective-C. I am building a View-based application.
We're in the process of building an internal, Java-based RESTful web services application 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.