3

Actually i am creating transparent overlay Application but when the the activity starts the application name is showing in the middle of screen rest everything is working fine... So how can i remove the application name

Check Screnshot : the Screenhot text is the Application Name Screenshot

Manifest file Code :

<activity
        android:name=".activity.ServiceManagement"
        android:theme="@style/Theme.Transparent"></activity>

Style sheet :

<style name="Theme.Transparent" parent="AppTheme">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:backgroundDimEnabled">false</item>
techDigi
  • 251
  • 3
  • 18

1 Answers1

2

If your transparent activity is an AppCompatActivity, then use Theme.AppCompat.NoActionBar as its parent theme. Directly adding these attributes to your activity's theme will also work.

<!-- no 'android:' prefix -->    
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
Eric Tjitra
  • 778
  • 8
  • 10