Load data only once when using BottomNavigationView
问题 I have a BottomNavigationView displaying Fragments , in my first fragment I'm using volley to fetch JSON data and populate it in a RecyclerView like below: private void loadRecyclerViewData() { StringRequest stringRequest = new StringRequest(Request.Method.GET, URL_DATA, new Response.Listener<String>() { @Override public void onResponse(String s) { bar.setVisibility(View.GONE); try { JSONArray array = new JSONArray(s); for (int i = 0; i < array.length(); i++) { JSONObject o = array