@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        if (savedInstanceState == null) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            SwipeRefreshLayoutBasicFragment fragment = new SwipeRefreshLayoutBasicFragment();
            transaction.replace(R.id.sample_content_fragment, fragment);
            transaction.commit();
        }
    }
A simple launcher activity containing a summary sample description, sample log and a custom
{@link android.support.v4.app.Fragment} which can display a view.
<p>
For devices with displays with a width of 720dp or greater, the sample log is always visible,
on other devices it's visibility is controlled by an item on the Action Bar.
SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/swiperefreshlayoutbasic/MainActivity.java