package cuneyt.example.com.gifview.Fragments;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import cuneyt.example.com.gifview.R;

/**
 * Created by Cuneyt on 14.10.2015.
 * Display gif on Fragment
 */
public class GifFragment extends Fragment {
    private String TAG;
    private static int instanceCount;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        return inflater.inflate(R.layout.fragment_layout, container, false);
    }

    public static GifFragment newInstance() {
        GifFragment fragment = new GifFragment();
        fragment.setTAG(Integer.toString(GifFragment.instanceCount++));
        return fragment;
    }

    public String getTAG() {
        return TAG;
    }

    public void setTAG(String TAG) {
        this.TAG = TAG;
    }
}
