Issue
I created a navigation drawer and on the top I would like to place a fragment containing information about the logged in user (kind of like what google apps have.) I made the fragment and put it inside the navigation drawer and that works fine, but I need to pass it data from the parent fragment. Thus I tried using
(UserOverviewFragment)getChildFragmentManager().findFragmentById(R.id.user_fragment);
But that returns null everytime. How can I get the Fragment object? Thank you.
Solution
You need something called RecyclerView
. Follow this excellent guide to do it.
Answered By - xyz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.