1
votes

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>
3

3 Answers

1
votes

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>
0
votes

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

0
votes

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