package com.androidcreation.viewpager;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
public class FragmentAnimals extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){
View v= inflater.inflate(R.layout.fragment_animals, container, false);
TextView textView=v.findViewById(R.id.textview);
textView.setText("Animals Fragment");
return v;
}
}