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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:26:39+00:00 2026-05-22T23:26:39+00:00

I have the exact same problem as this post . I want my custom

  • 0

I have the exact same problem as this post. I want my custom notifications text style to match the default notifications (Im just going to add a few extra views). Unfortunately I don’t fully understand the accepted answer. I think I am meant to add to the XML code but not sure exactly what…
enter image description here

The accepted answer says”
The solution is to use built-in styles. The style you need is TextAppearance.StatusBar.EventContent. Just apply this style and it will set the default text color for notifications (don’t forget android: prefix, of course).
“

I cant get this to work! In my custom notification below the line “android:textAppearance=”?android:attr/textAppearanceLarge” works (as it enlargens the text) but does not give the desired effect.

Here is my custom XML code…

<ImageView
    android:id="@+id/notImage"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginRight="10dp" 
    android:layout_alignParentTop="true"/>

<TextView 
    android:id="@+id/notContentTitle"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_toRightOf ="@id/notImage" 
    android:textAppearance="?android:attr/textAppearanceLarge" />

<TextView 
    android:id="@+id/notContentText"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below ="@id/notContentTitle"
 />

Custom notification layouts and text colors

  • 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-22T23:26:40+00:00Added an answer on May 22, 2026 at 11:26 pm

    Finally figured out what I was doing wrong… (basically I was using features from API 9 when I am only developing on API 8).

    Firstly, to use a default (platform) style use…

    style = “@android:style/TextAppearance.Small”

    For example…

    <RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:padding="3dp">
    
    <ImageView
        android:id="@+id/notImage"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginRight="10dp" 
        android:layout_alignParentTop="true"/>
    
    <TextView 
        android:id="@+id/notContentTitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf ="@id/notImage" 
        android:textStyle="bold"
        style = "@android:style/TextAppearance.Medium"/>
    
    <TextView 
        android:id="@+id/notContentText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below ="@id/notImage"
        style = "@android:style/TextAppearance.Small"    />
    

    Secondly to use the StatusBar default style use..

    style = “@android:style/TextAppearance.StatusBar.EventContent” or

    style = “@android:style/TextAppearance.StatusBar.EventContent.Title”,

    etc, etc.

    For example,

        <TextView 
        android:id="@+id/notContentText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below ="@id/notImage"
        style = "@android:style/TextAppearance.StatusBar.EventContent"   />
    

    In my case this caused an error because I am still developing with Android 2.2 (API 8) whilst these StatusBar styles are for API 9 onwards. (I know I should update :))

    Useful links are;

    Android.com Applying Styles and Themes, Using Platform Styles and Themes

    Android.com R.style reference

    StackOverflow.com Custom notification layouts and text colours

    Android.com Android API levels

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

Sidebar

Related Questions

I have the exact same problem as described in this post (event content /
Closed as exact duplicate of this question . I have an array/list of elements.
please I have the same problem as I found here MySQL - Selecting data
I just switched to vs2010 from vs2008. Exact same solution, except now every single
I have a temp table with the exact structure of a concrete table T
I have a couple of mdb files with the exact table structure. I have
Ok Here is the exact scenario: I have a view named Index I have
I have 3 points in a 3D space of which I know the exact
I have some old rrdtool databases, for which the exact creation recipe has long
Typically languages have keywords that you are unable to use directly with the exact

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.