Skip to content

Instantly share code, notes, and snippets.

@tshrkmd
Last active November 3, 2022 09:58
Show Gist options
  • Save tshrkmd/6159846 to your computer and use it in GitHub Desktop.
Save tshrkmd/6159846 to your computer and use it in GitHub Desktop.
Theme.AppCompat.Light.NoActionBar
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light">
<item name="android:windowNoTitle">true</item>
<item name="windowActionBar">false</item> <!-- For 2.x version -->
</style>
</resources>
@Ipzzer
Copy link

Ipzzer commented Jan 31, 2014

Great! Thanks

@matheusbernardes
Copy link

+1

@Neferetheka
Copy link

Sounds like it's not working on Android 2.x

@danielgomezrico
Copy link

Thanks man

@alopix
Copy link

alopix commented Mar 31, 2014

Not working on Android 2.x :(

@nezen
Copy link

nezen commented Jun 17, 2014

if (Build.VERSION.SDK_INT < 11){ getSupportActionBar().hide(); }

@kevinmichaelchen
Copy link

Thanks!

@asifmujteba
Copy link

Added a fork (https://gist.github.com/asifmujteba/0eae2249359744ff86bd) which would work on Android 2.x versions also!

@createS0ftware
Copy link

excellent

@hoombar
Copy link

hoombar commented Oct 28, 2014

Thanks

@ceosilvajr
Copy link

Great!

@willf80
Copy link

willf80 commented Nov 29, 2014

Thank you very match !

@paulirwin
Copy link

+1 Thank you!

@shoully
Copy link

shoully commented Feb 1, 2015

And what about

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

@sphairo
Copy link

sphairo commented Jul 17, 2015

this code not working, I am using :

my app is closed to open.

:(

en res/values/styles.xml

<style name="Theme.MyTheme" parent="@style/_MyTheme"/>
<style name="_MyTheme" parent="@style/Theme.AppCompat.Light">

    <item name="android:windowNoTitle">true</item>
    <item name="windowActionBar">false</item> <!-- For 2.x version  -->
</style>

@sphairo
Copy link

sphairo commented Jul 21, 2015

this works well

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

@sphairo
Copy link

sphairo commented Jul 21, 2015

< style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar" >

@bazinga29
Copy link

worked for me! thanks a lot!

@Bhagirath123
Copy link

hi all
i have create my project in ionic v3
i have run my ionic app in android and i am getting error about Theme.AppCompat.Light.NoActionBar

  • What went wrong:
    Execution failed for task ':app:processDebugResources'.

Android resource linking failed
error: resource style/Theme.AppCompat.Light.NoActionBar (aka io.ionic.myapp:style/Theme.AppCompat.Light.NoActionBar) not found.
error: failed linking references.

plz help
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment