Relative Content

Tag Archive for androidkotlinandroid-fragments

Newbie trying to create App with Android Studio

Ok so like in the title I’m a complete newb when it comes to .apk development. What I want to create is a private APP for our DnD session, exclusively for spell list. I want the main menu to show buttons for the classes (Warrior, Bard, etc.). Each of these buttons should show another page where there are buttons for the spell level related to the selected class (Level 0, Level 1, etc.) Then those buttons should show a list of the spells related to these particular levels. Each spells should be listed with a simple description, but each spell should be clickable to show a dedicated page for the spell for further information on the specific spell.

Send search query to nested fragments

I have a SearchFragment, inside it is an EditText (for entering a query), a TabLayout and a ViewPager2 with three Fragments (StreamsFragment, PlaylistsFragment, TracksFragment).
When entering a query, I want to send it to the currently selected fragment, so that the search and display logic is in the corresponding fragment.
So the question is, how do I pass the entered queries into fragments in ViewPager?