tags:

views:

17

answers:

2

Hi,

I have an activity. It does not have a title bar. The content view is just a linear layout. It looks like android draws a drop shadow at the top of my content view, directly below the status bar. Is there a way to stop that from being drawn?

My layout is just:

I have no titlebar:

requestWindowFeature(Window.FEATURE_NO_TITLE);

Thanks

A: 

This has already been answered.

Daniel
+1  A: 

In res/values/styles.xml:

<style name="Theme.Custom" parent="@android:style/Theme.NoTitleBar">
    <item name="android:windowContentOverlay">@null</item>
</style>

Then in your manifest:

<activity android:name=".YourActivity" 
    android:theme="@style/Theme.Custom" >
...
</activity>
iPaulPro