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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:18:52+00:00 2026-05-30T11:18:52+00:00

I just had a look at Ice Cream Sandwich source code, because I am

  • 0

I just had a look at Ice Cream Sandwich source code, because I am trying to port the Holo Theme to all pre-4.0 devices.

I used a lot of usefull tools:

Action Bar: ActionBarSherlock

ICS Background:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
    android:angle="270"
    android:startColor="#ff020202"
    android:endColor="#ff272D33d"
    android:type="linear" />
</shape>

and till now, everything is just awesome!!!

I am now trying to create a button, but cannot find the correct background:

Following source: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/drawable/btn_default.xml

I tried this:

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:state_enabled="true"
    android:drawable="@drawable/btn_default_normal" />
<item android:state_window_focused="false" android:state_enabled="false"
    android:drawable="@drawable/btn_default_normal_disable" />
<item android:state_pressed="true" 
    android:drawable="@drawable/btn_default_pressed" />
<item android:state_focused="true" android:state_enabled="true"
    android:drawable="@drawable/btn_default_selected" />
<item android:state_enabled="true"
    android:drawable="@drawable/btn_default_normal" />
<item android:state_focused="true"
    android:drawable="@drawable/btn_default_normal_disable_focused" />
<item
     android:drawable="@drawable/btn_default_normal_disable" />

And I copied every .9.png file into my drawable folder.

But Unfortunately, all these drawable seems rather white and I cannot get something similar to this button:

http://cdn3.staztic.com/screenshots/combourkekitchentimer-2-0.jpg

Here are all resource:

btn_default_normal_holo_dark.9.png

enter image description here

btn_default_normal_holo_light.9.png

enter image description here

btn_default_normal.9.png

enter image description here

  • 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-30T11:18:53+00:00Added an answer on May 30, 2026 at 11:18 am

    I had to choose Holo Dark theme:

    <selector xmlns:android="http://schemas.android.com/apk/res/android">
    
        <item android:drawable="@drawable/btn_default_normal_holo_dark" android:state_enabled="true" android:state_window_focused="false"/>
        <item android:drawable="@drawable/btn_default_disabled_holo_dark" android:state_enabled="false" android:state_window_focused="false"/>
        <item android:drawable="@drawable/btn_default_pressed_holo_dark" android:state_pressed="true"/>
        <item android:drawable="@drawable/btn_default_focused_holo_dark" android:state_enabled="true" android:state_focused="true"/>
        <item android:drawable="@drawable/btn_default_normal_holo_dark" android:state_enabled="true"/>
        <item android:drawable="@drawable/btn_default_disabled_focused_holo_dark" android:state_focused="true"/>
        <item android:drawable="@drawable/btn_default_disabled_holo_dark"/>
    
    </selector>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone had any problems with the Toast Notifications in Ice Cream Sandwich being
I just had a friend of mine look over some code I'm using to
I just had a look at Suns Java tutorial, and found something that totally
I've had a look through several of the related questions and just can't seem
Update: 24 Mar 2011: Just wanted to add that I've had a look at
I've had a look at multiple programs, scripts, plug ins etc, i'm trying to
I just had a look at Firemonkey's grid implementation and it turns out that
I just had a look at the docs on sleep() . Where would you
I just recently had a chance to take a look at web2py framework and
Just had a discussion at work about the merits of using PostgreSQL over MySQL

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.