Error: No view found for id androidx(Jetpack) Preference library
No, there isn't a container.
You never use setContentView()
in your Activity, so that layout doesn't exist. tools:context
is an IDE-only feature.
You need to use
setContentView(R.layout.activity_settings)
right after calling super.onCreate(savedInstanceState)
.