i’ve a problem with my app.
Today i’ve upgrade my android studio to the last version.
I’ve runned my app on my phone, but in the activity_main.xml the include layout (that contains a new ActionBar) doesn’t show the new actionBar, but show the image behind my smartphone.
when i use the comand.
viewBinding = ActivityMainBinding.inflate(layoutInflater)
setContentView(viewBinding.root)
The actionBar doesn’t appear.
when i use
setContentView(R.layout.activity_main)
The app show my include layout with the new actionbar, but the camera doesn’t show the image behind my snartphone.
Could you please help
Many thanks
2
Answers
i've tried with setContentView(viewBinding.getRoot()), but the result its the same. i've noticed that my customized topbar appers until the app launch the function, startCamera() I've also noticed that the customized topbar dissapear when in the startCamera, the execution reach this code
Instead of
try