Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App name is show in Transparent Activity

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>
like image 467
techDigi Avatar asked Dec 08 '25 21:12

techDigi


1 Answers

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>
like image 161
Eric Tjitra Avatar answered Dec 11 '25 11:12

Eric Tjitra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!