Android Dev question: What is the easiest way to show an Fragment in an Activity? The Activity does not need to do anything else, I feel like inflating a layout just to set the fragment in it is already overkill.
Ah replacing the content view with the fragment works. You just have to know that it has the id android.R.id.content 🧐
@ConnyDuck is that documented somewhere? We have some activities that just contain fragments I think
@ConnyDuck oh right, I think you blocked Fosstodon. Talking to myself...
@PixelDroid no i can read that
@ConnyDuck Oh ok, must have confused you with someone else for that.
@PixelDroid I found it on Stackoverflow, no idea
I like the new way with #Jetpack a lot, look https://developer.android.com/guide/navigation/navigation-getting-started
The activity has almost no things to do.
chaos.social – a Fediverse instance for & by the Chaos community