@Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case R.id.menu_refresh:
                obtainData();
                return true;
            default:
                return super.onOptionsItemSelected(item);
        }
    }
Sample implementation of {@link com.devspark.progressfragment.ProgressFragment}.

@author Evgeny Shishkin
progressfragment-sample/src/com/devspark/progressfragment/sample/DefaultProgressFragment.java