I want to refresh fragment on itemselect in spinner. But unfortunatelly not properly work. My code is given below :  overview_spMonth.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
                selectedMonth=overview_spMonth.getSelectedItem().toString();

                OverviewFragment over = new OverviewFragment();
                FragmentManager fragmentManager = getFragmentManager();
// Or: FragmentManager fragmentManager = getSupportFragmentManager()
                fragmentManager.beginTransaction()
                        .detach(over)
                        .attach(over)
                        .commit();
           }
            @Override
            public void onNothingSelected(AdapterView<?> parent) {

            }
        });