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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:41:50+00:00 2026-06-05T22:41:50+00:00

I am working on an android application which is sort of an e-reader but

  • 0

I am working on an android application which is sort of an e-reader but it reads xml files. What I want it to change the background color of the xml file views using a change background button. Quite similar to what Kindle app where when reading an ebook, you can switch the background color to black, white or sepia. I believe this will require changing the whole theme rather than just the background as the text color will also change.

Any help in this regard would be appreciated.

  • 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-05T22:41:51+00:00Added an answer on June 5, 2026 at 10:41 pm

    Changing a theme at the runtime is not possible – you’ll have to restart the current Activity and it will use the new Theme.

    You can change the background for the Layout and the TextViews by iterating over the views and setting the colors yourself.

    If you want to use the Theming method you must do the following:

    setTheme(android.R.style.Theme_Black);
    myActivity.startActivity(new Intent(myActivity.this, myActivity.class));
    myActivity.finish();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an android application and I added a xml layout file
I am working on an Android application in which I want to integrate foursquare
I am working on an android application in which I want to parse an
I am working on an Android Application which requires some design but i am
I'm working on an android application which allows users to create accounts on a
I am working on an android application which can be used to capture the
I am currently working on an android application which requires reading data from bluetooth
I'm working on an android tablet application using phonegap in which i need to
I am working on a Mapview in my android application, in which i have
I developed an application in the phonegap which is working good in the android

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.