1

My program crashed when i put a android:theme="@style/Theme.AppCompat.NoActionBar">

How can I remove the title without crash the program and without removing the action bar? I am using a navigation with AppBarConfiguration

Notes : this doesnt work true

  • It would be helpful if you posted the logcat output of the error that comes with the crash. By any chance would this solve your question? https://stackoverflow.com/questions/47951491/app-crashes-after-chaning-theme-to-noactionbar – RyeBread May 12 '21 at 01:17

2 Answers2

0

check your style file and make sure you use the same theme and upload an ERROR screenshot to fast and right answer

Noah Mohamed
  • 114
  • 1
  • 1
  • 8
0

try this instead:

@android:style/Theme.NoTitleBar

or

this: <item name="windowNoTitle">true</item> in AndroidManifest.xml

and you can check here if this doesn't work: How to hide the title bar for an Activity in XML with existing custom theme

render4me
  • 23
  • 3