ArhamTechMind

How to Hide ActionBar and NotificationBar in android

How to Hide ActionBar and NotificationBar in android

Solution: How to disable/hide notification bar at the top which show battery and other things in android.
How to Hide ActionBar and NotificationBar in android

style.xml

<resources>
<!– Base application theme. —>
<style name=“AppTheme” parent=“Theme.AppCompat.Light.DarkActionBar”>
<!– Customize your theme here. —>
<item name=“colorPrimary”>@color/colorPrimary</item>
<item name=“colorPrimaryDark”>@color/colorPrimaryDark</item>
<item name=“colorAccent”>@color/colorAccent</item>
<item name=“android:textColor”>@color/colorAccent</item>
</style>
<style name=“AppTheme.NoActionBar”>
<item name=“windowActionBar”>false</item>
<item name=“windowNoTitle”>true</item>
</style>
</resources>
Screenshot_2020-07-15-16-36-21-286_com.arham.soft.muslimmarriageguide.jpg
Awesome UI Design using CradView Android Studio

Take a look ...

Awesome UI Design using CardView Android Studio

To see this post
Use a theme in your AndroidManifest.xml:
 android:theme="@style/AppTheme.NoActionBar"
or use the following code snippet:
public class FullScreen extends android.app.Activity
{
@Override
public void onCreate(android.os.Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

setContentView(R.layout.main);

}

}

Leave a Comment

Your email address will not be published. Required fields are marked *