I have a listview in a fragment with a customadapter loading a list of products from my mysql database. When I navigate to the fragment from my navigation drawer activity for the 1st time, it doesn't show any items but the same get printed in the log. But when the same fragment is initiated 2nd time, all items are visible. Here is my code from the onCreateView() of fragment:I have a listview in a fragment with a customad