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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:30:40+00:00 2026-05-17T01:30:40+00:00

I have followed the instructions from this SO question: How to change the text

  • 0

I have followed the instructions from this SO question: How to change the text on the action bar

I am able to successfully create my own titlebar, however when I apply a background color to my layout, the color doesn’t span across the entire titlebar. There are still remnants of the android gray background color.

Here is my XML:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="400px" 
  android:layout_height="fill_parent"
  android:orientation="horizontal" android:background="@color/solid_blue">

<ImageView android:id="@+id/logo" 
            android:layout_width="57px" 
            android:layout_height="wrap_content"
            android:background="@drawable/icon">

</ImageView>

<TextView 

  android:id="@+id/myTitle" 
  android:text="StockDroid by" 
  android:layout_width="fill_parent" 
  android:layout_height="fill_parent" 
  android:textColor="#FFFFFF"
   />
</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-17T01:30:41+00:00Added an answer on May 17, 2026 at 1:30 am

    Remaining stuff is on that link itself as a comment man.

    Edit:

    The stuff you have missed to set the custom style for the Window Title and set it at the Manifest by the android:theme attribute for the activity.

    you have to create this two style in your res/values/styles.xml file:

    <style name="MyTheme" parent="android:Theme">
            <item name="android:windowTitleSize">50px</item>
            <item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground
            </item>
    
        </style>
    <style name="WindowTitleBackground" parent="android:WindowTitleBackground">
            <item name="android:background">@android:color/transparent
            </item>
        </style>
    

    then you have to set you style as theme in you Manifest that is like:

    <activity android:name=".activity"
                android:label="@string/appname" android:theme="@style/MyTheme" />
    

    hope it helps.

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

Sidebar

Related Questions

This question is regarding getting version directly from assembly. I have followed instructions from
I have followed the Accepted Answer's instructions from this post as regards creating a
I posted this question and have a freshly minted code signing cert from Thawte.
I want to change XAMPP's htdocs directory. I followed the instructions to create a
I have followed the instructions at http://www.javacodegeeks.com/2011/01/advanced-smartgwt-tutorial-part-1.html and tried to create a simple screen
I have followed the instructions on this page to get started on ActionMailer. After
See update below. This is driving me mad. I have followed all the instructions
I am trying to learn Ruby on Rails, I have followed the instructions from
I'm a bit mystified as to how to do this. I have followed instructions
I have Windows 7 OS. I have followed the instructions from the PETSc web

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.