Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Actionbar missing when theme changes

I'm trying to change an app theme at run time so I have added the android:theme tag to my manifest file which changes it from Holo to Holo.Light and I works, the only thing is that the action bar isn't showing with the new theme

Can someone please tell me what I'm missing, thanks

<application android:label="@string/app_name"
             android:icon="@drawable/ic_launcher"
             android:theme="@style/AppTheme">

[update] added the AppTheme as requested

<resources>

    <style name="AppTheme" parent="android:Theme.Light" />

</resources>
like image 347
spences10 Avatar asked Dec 08 '25 21:12

spences10


1 Answers

You are overwriting ActionBar styles. You should extend base Holo or Holo.Light theme with:

<style name="AppTheme" parent="android:Theme.Holo.Light">
like image 127
hsz Avatar answered Dec 10 '25 09:12

hsz



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!