com.albedinsky.android.support.pager.adapter.FragmentPagerAdapter.java Source code

Java tutorial

Introduction

Here is the source code for com.albedinsky.android.support.pager.adapter.FragmentPagerAdapter.java

Source

/*
 * =================================================================================================
 *                             Copyright (C) 2016 Martin Albedinsky
 * =================================================================================================
 *         Licensed under the Apache License, Version 2.0 or later (further "License" only).
 * -------------------------------------------------------------------------------------------------
 * You may use this file only in compliance with the License. More details and copy of this License
 * you may obtain at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * You can redistribute, modify or publish any part of the code written within this file but as it
 * is described in the License, the software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES or CONDITIONS OF ANY KIND.
 *
 * See the License for the specific language governing permissions and limitations under the License.
 * =================================================================================================
 */
package com.albedinsky.android.support.pager.adapter;

import android.support.annotation.NonNull;
import android.support.v4.app.FragmentManager;

/**
 * Ported version of the {@link android.support.v4.app.FragmentPagerAdapter support FragmentPagerAdapter}.
 * <p>
 * This implementation does not add any additional features to those provided by the super adapter.
 *
 * @author Martin Albedinsky
 */
public abstract class FragmentPagerAdapter extends android.support.v4.app.FragmentPagerAdapter {

    /**
     * Creates a new instance of FragmentPagerAdapter with the specified <var>fragmentManager</var>.
     *
     * @param fragmentManager The fragment manager used to show/hide fragments provided by the new
     *                        adapter.
     */
    public FragmentPagerAdapter(@NonNull FragmentManager fragmentManager) {
        super(fragmentManager);
    }
}