Charlie
Charlie

Reputation: 325

Android: Get color Theme dark

I have created a menu in my application and looks white background. I want it to look with the color theme of black background. I have to change in the code to get it? I have declared this in styles:

<style name="AppBaseTheme" parent="android:Theme.Holo">

EDIT I not want the color black background. I want the dark theme that many apps have.

My current color menu

LINK 1

My whised color menu

LINK 2

<style name="AppBaseTheme" parent="android:Theme.Holo">

</style>

<style name="AppTheme" parent="AppBaseTheme">
    <item name="android:textColorPrimary">#ff000000</item>
</style>

Upvotes: 1

Views: 727

Answers (3)

Bhanu Sharma
Bhanu Sharma

Reputation: 5145

You can get from Android theme like this:

parent="android:Theme.Holo.Dark" to parent="android:Theme.Holo" 

And from custom you can set like this:

   <resources>
        ...
        <style name="MyCustomTheme" parent="android:style/Theme">
            <item name="android:textColorPrimary">#ffff0000</item>
        </style>
        ...
    </resources>

Upvotes: 1

Naveen Kumar Kuppan
Naveen Kumar Kuppan

Reputation: 1442

Better choice you must go with the theme black that will suite most for you So you will add the this to your mainfest file..

   <application     
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Black"
     >

And then you will get your desired dark black theme on your Applictaion

Upvotes: 0

tauitdnmd
tauitdnmd

Reputation: 368

You can add a in your style named "android:background" with black color.

Upvotes: 0

Related Questions