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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:49:08+00:00 2026-05-23T02:49:08+00:00

I am attempting to override TextAppearance.Medium in a custom theme that is applied to

  • 0

I am attempting to override TextAppearance.Medium in a custom theme that is applied to my entire application with the appropriate entry in my application manifest. For some reason, the style I have specified is not applied to views nested within a ListView that I am populating using a custom layout and a SimpleAdapter. The style is applied to TextView views that are not items bound to a ListView.

Samples of the theme definition and custom layout are below.

To elucidate, I am not having problems populating the list with items utilizing the custom layout, my theme is definitely being applied throughout my application, and I am also aware that my list item layout could be optimized by using a RelativeLayout. I am simply looking for an answer as to why my list items are not being styled correctly.

Am I misunderstanding the capabilities of theme inheritance, or are there additional list-specific styles that I need to inherit/override?

API Level 7 (Android 2.1)

Testing using HTC Evo 4G, and generic AVD device


Theme Definition

<style name="Theme" parent="android:Theme.Light.NoTitleBar">
  <item name="android:textAppearanceMedium">@style/TextAppearance.Medium</item>
</style>

<style name="TextAppearance.Medium" parent="android:style/TextAppearance.Medium">
  <item name="android:textColor">@android:color/black</item>
</style>

List Item Layout Definition

<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" android:orientation="horizontal" android:padding="10dp">
    <TextView android:layout_width="wrap_content" android:text="TextView" android:id="@+id/jobItemDateDueTextView" android:layout_height="fill_parent" android:gravity="center" android:textStyle="bold" android:layout_marginRight="15dp"></TextView>
    <LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent" android:orientation="vertical">
        <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" android:id="@+id/jobItemHeaderTextView" android:maxLines="1" android:textAppearance="?android:attr/textAppearanceMedium"></TextView>
        <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" android:id="@+id/jobItemContentTextView"></TextView>
    </LinearLayout>
</LinearLayout>
  • 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-05-23T02:49:09+00:00Added an answer on May 23, 2026 at 2:49 am

    Continuing the discussion from the comment thread above, the application Context will not carry the same theming information along with it that your Activity does. Use your Activity instance when you need a Context for generating UI elements.

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

Sidebar

Related Questions

I am attempting to create an application that will initiate a call to a
I am attempting to create a simple application using Eclipse GEF that displays a
I'm attempting to override the Form.Element.disable() method in PrototypeJS so that it adds a
I'm attempting to override the default ToggleButton appearance. Here's the XML that defines the
I'm attempting to create a custom JButton that has interchangeable skin components. Using CardLayout
I'm attempting to create a custom calendar control that inherits from ASP.Net's built in
I am attempting to override a method declaration within an interface that extends another
I'm attempting to override and implement my own TabExpansion. In the function I want
Attempting to make a NSObject called 'Person' that will hold the login details for
This is already cross-posted at MS Connect: https://connect.microsoft.com/VisualStudio/feedback/details/560451 I am attempting to override the

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.