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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:32:43+00:00 2026-06-14T09:32:43+00:00

I am writing an android app and I am wanting to alter the theme

  • 0

I am writing an android app and I am wanting to alter the theme of my app.

I have managed to alter the background colour of the app by using a theme, but I am struggling to change the default text appearance.

This is my styles.xml resource file.

<resources>
    <style name="QTheme" parent="android:Theme.Light">
        <item name="android:windowBackground">@color/q_green</item>
        <item name="android:colorBackground">@color/q_green</item>
        <item name="android:textAppearance">@style/QText</item> 
    </style>

    <color name="q_green">#008000</color>
    <color name="white">#FFFFFF</color>

    <style name="QText" parent="@android:style/TextAppearance.Medium"> 
        <item name="android:textSize">20sp</item> 
        <item name="android:textColor">@color/white</item> 
        <item name="android:textStyle">bold</item>
        <item name="android:textFont">Verdana</item>
    </style>
</resources>

and just to check, this is an example of one of my TextViews I want to use the above style in my layout file.

<TextView
    android:id="@+id/txtDevice"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:text="@string/device" 
/>

Can anyone see where I am going wrong?

  • 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-14T09:32:44+00:00Added an answer on June 14, 2026 at 9:32 am

    Just for completeness, and full credit to Lusprog, this is now my resources file

    <resources>
        <style name="QTheme" parent="android:Theme.Light">
            <item name="android:windowBackground">@color/q_green</item>
            <item name="android:colorBackground">@color/q_green</item>
            <item name="android:textViewStyle">@style/QText</item> 
        </style>
    
        <color name="q_green">#008000</color>
        <color name="white">#FFFFFF</color>
    
        <style name="QText" parent="@android:style/TextAppearance.Medium"> 
            <item name="android:textSize">20sp</item> 
            <item name="android:textColor">@color/white</item> 
            <item name="android:textStyle">bold</item>
            <item name="android:typeface">sans</item>
        </style>
    </resources>
    

    Also thanks to Padma Kumar for the font help.

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

Sidebar

Related Questions

I'm writing my first android app (I'm a noob at android, but decent at
I am writing a little picture frame app for android that is using opengl
I'm writing an Android app using the NDK and NativeActivity. My app depends on
Im writing an android app that connects to my own Jersey rest client. HTTP
I'm writing an android app and I need to read several files from several
I am currently writing an Android app that, among other things, uses text information
I'm writing an Android app where users can upload video to Youtube. I'd like
I am writing an android app. I want to pass some data across the
I am writing an Android app which communicates with a PHP backend. The backend
I'm writing an Android app that needs to access GMail, and I'd like to

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.