SHARE
TWEET

Fragment3

Nikolovska Sep 17th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package mk.ukim.finki.djesba;
  2.  
  3.  
  4. import android.app.Activity;
  5. import android.content.Intent;
  6. import android.os.Bundle;
  7.  
  8. import androidx.fragment.app.Fragment;
  9. import androidx.viewpager.widget.ViewPager;
  10.  
  11. import android.view.LayoutInflater;
  12. import android.view.View;
  13. import android.view.ViewGroup;
  14. import android.widget.TextView;
  15.  
  16.  
  17. /**
  18.  * A simple {@link Fragment} subclass.
  19.  */
  20. public class Fragment3 extends Fragment {
  21.  
  22.     ViewPager viewPager;
  23.     TextView done;
  24.  
  25.     public Fragment3() {
  26.         // Required empty public constructor
  27.     }
  28.  
  29.  
  30.     @Override
  31.     public View onCreateView(LayoutInflater inflater, ViewGroup container,
  32.                              Bundle savedInstanceState) {
  33.         // Inflate the layout for this fragment
  34.         View view =  inflater.inflate(R.layout.fragment_fragment3, container, false);
  35.  
  36.         viewPager = getActivity().findViewById(R.id.introViewPage);
  37.  
  38.         done = view.findViewById(R.id.done);
  39.         done.setOnClickListener(new View.OnClickListener() {
  40.             @Override
  41.             public void onClick(View v) {
  42.                 // prodolzi so MainPageActivity
  43.                 //getActivity().getFragmentManager().beginTransaction().remove(this).commit();
  44.             }
  45.         });
  46.  
  47.         return view;
  48.     }
  49.  
  50. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top