selection color and text color in whole project

by Kumar Bibek » Thu, 22 Apr 2010 17:37:50 GMT


Sponsored Links
 Look at how to set themes for your application. That should help you.

 http://developer.android.com/guide/topics/ui/themes.html 

Thanks and Regards,
Kumar Bibek



>



selection color and text color in whole project

by AJ (Anantha Javali) » Thu, 22 Apr 2010 21:46:47 GMT


 Here is an example, Please use add it as part of your manifest file


<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="MyTheme">
 <item name="android:windowNoTitle">true</item>
<item name="windowFrame">@drawable/screen_frame</item>
<item name="windowBackground">@drawable/screen_background_white</
item>
<item name="panelForegroundColor">#FF000000</item>
<item name="panelBackgroundColor">#FFFFFFFF</item>
<item name="panelTextSize">14</item>
<item name="menuItemTextColor">?panelTextColor</item>
   </style>
</resources>

Set the theme in the manifest
<application android:theme="@style/MyTheme">





>


Sponsored Links


Other Threads

1. Camera Preview is rotated 90. (auto rotates unless keyboard is out)

Hopefully this makes sense. I have a camerapreview on a surface, the
issue is that it rotated 90degrees. If I rotate the phone the camera
preview is still rotated 90 degrees, so it must be using the
accelerometer to determine upright.

If I slide the keyboard out, it fixes it and the image is then
vertical. Any suggestions? I have tried the following :

Camera.Parameters p = camera.getParameters();
p.set("rotation", 0);

        surfaceHolder.getSurface();
        Surface.setOrientation(Display.DEFAULT_DISPLAY,
Surface.ROTATION_180);

Any other suggestions?



--~--~---------~--~----~------------~-------~--~----~

2. How to see the documents under Android /frameworks/base/docs?

These are used to make the SDK documentation.  Just build the platform, and
you will find the resulting docs in out/... somewhere.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~

3. How to disable Cancelable of activity

4. Get the value from database

5. WebView failing on G1

6. What are the MediaPlayer Class upcoming fixes?

7. Issue reagrding check out from SVN