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 🧐

Show thread

@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...

@ConnyDuck Oh ok, must have confused you with someone else for that.

@MicMun @ConnyDuck oh that does look fancy. A graph and everything. Thank you for introducing me to this! Will see if this can be useful.

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.