nhaarman / acorn

Mastering Android navigation :chipmunk:
https://nhaarman.github.io/acorn
Apache License 2.0
181 stars 7 forks source link

Provide a custom FrameLayout as root view when using AppCompat #152

Closed nhaarman closed 4 years ago

nhaarman commented 4 years ago

androidx.appcompat.app.AppCompatActivity inserts a custom ViewGroup with the android.R.id.content identifier, which unfortunately has a different theme than the Activity's theme. This results in theming issues when using parent.context to create views which is a common thing to do in ViewControllerFactory implementations.

This commit deprecates several convenience methods which extracted the android.R.id.content ViewGroup from the Activity instance.

Fixes #150