// Path: app/src/main/java/com/crazyhitty/chdev/ks/munch/ui/fragments/SplashFragment.java
// public class SplashFragment extends Fragment {
// 
//     private static final String ARG_SECTION_NUMBER = "section_number";
//     @Bind(R.id.relative_layout_fragment_splash)
//     RelativeLayout relativeLayoutSplash;
//     @Bind(R.id.text_view_splash_title)
//     TextView txtSplashTitle;
//     @Bind(R.id.text_view_splash_desc)
//     TextView txtSplashDesc;
//     @Bind(R.id.image_view_splash)
//     ImageView imgSplash;
//     @Bind(R.id.image_view_empty_dot_1)
//     ImageView imgEmptyDot1;
//     @Bind(R.id.image_view_empty_dot_2)
//     ImageView imgEmptyDot2;
//     @Bind(R.id.image_view_empty_dot_3)
//     ImageView imgEmptyDot3;
//     @Bind(R.id.image_view_selected_dot_1)
//     ImageView imgSelectedDot1;
//     @Bind(R.id.image_view_selected_dot_2)
//     ImageView imgSelectedDot2;
//     @Bind(R.id.image_view_selected_dot_3)
//     ImageView imgSelectedDot3;
// 
//     /**
//      * Returns a new instance of this fragment for the given section
//      * number.
//      */
//     public static SplashFragment newInstance(int sectionNumber) {
//         SplashFragment fragment = new SplashFragment();
//         Bundle args = new Bundle();
//         args.putInt(ARG_SECTION_NUMBER, sectionNumber);
//         fragment.setArguments(args);
//         return fragment;
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container,
//                              Bundle savedInstanceState) {
//         View view = inflater.inflate(R.layout.fragment_splash, container, false);
//         ButterKnife.bind(this, view);
//         return view;
//     }
// 
//     @Override
//     public void onActivityCreated(Bundle savedInstanceState) {
//         super.onActivityCreated(savedInstanceState);
//         int sectionNumber = getArguments().getInt(ARG_SECTION_NUMBER);
//         txtSplashTitle.setText(getString(R.string.section_format, sectionNumber));
// 
//         switch (sectionNumber) {
//             case 1:
//                 txtSplashTitle.setText(R.string.splash_title_1);
//                 txtSplashDesc.setText(R.string.splash_desc_1);
//                 imgSplash.setImageResource(R.drawable.splash_1);
//                 relativeLayoutSplash.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.md_blue_grey_500));
//                 imgSelectedDot1.setVisibility(View.VISIBLE);
//                 imgSelectedDot2.setVisibility(View.INVISIBLE);
//                 imgSelectedDot3.setVisibility(View.INVISIBLE);
//                 break;
//             case 2:
//                 txtSplashTitle.setText(R.string.splash_title_2);
//                 txtSplashDesc.setText(R.string.splash_desc_2);
//                 imgSplash.setImageResource(R.drawable.splash_2);
//                 relativeLayoutSplash.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.colorAccent));
//                 imgSelectedDot1.setVisibility(View.INVISIBLE);
//                 imgSelectedDot2.setVisibility(View.VISIBLE);
//                 imgSelectedDot3.setVisibility(View.INVISIBLE);
//                 break;
//             case 3:
//                 txtSplashTitle.setText(R.string.splash_title_3);
//                 txtSplashDesc.setText(R.string.splash_desc_3);
//                 imgSplash.setImageResource(R.drawable.splash_3);
//                 relativeLayoutSplash.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.colorPrimary));
//                 imgSelectedDot1.setVisibility(View.INVISIBLE);
//                 imgSelectedDot2.setVisibility(View.INVISIBLE);
//                 imgSelectedDot3.setVisibility(View.VISIBLE);
//                 break;
//         }
//     }
// }


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.crazyhitty.chdev.ks.munch.ui.fragments.SplashFragment;
package com.crazyhitty.chdev.ks.munch.ui.adapters;



/**
 * Created by Kartik_ch on 12/17/2015.
 */
public class SplashPagerAdapter extends FragmentPagerAdapter {

    public SplashPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        // getItem is called to instantiate the fragment for the given page.
        // Return a PlaceholderFragment (defined as a static inner class below).
// Path: app/src/main/java/com/crazyhitty/chdev/ks/munch/ui/fragments/SplashFragment.java
// public class SplashFragment extends Fragment {
// 
//     private static final String ARG_SECTION_NUMBER = "section_number";
//     @Bind(R.id.relative_layout_fragment_splash)
//     RelativeLayout relativeLayoutSplash;
//     @Bind(R.id.text_view_splash_title)
//     TextView txtSplashTitle;
//     @Bind(R.id.text_view_splash_desc)
//     TextView txtSplashDesc;
//     @Bind(R.id.image_view_splash)
//     ImageView imgSplash;
//     @Bind(R.id.image_view_empty_dot_1)
//     ImageView imgEmptyDot1;
//     @Bind(R.id.image_view_empty_dot_2)
//     ImageView imgEmptyDot2;
//     @Bind(R.id.image_view_empty_dot_3)
//     ImageView imgEmptyDot3;
//     @Bind(R.id.image_view_selected_dot_1)
//     ImageView imgSelectedDot1;
//     @Bind(R.id.image_view_selected_dot_2)
//     ImageView imgSelectedDot2;
//     @Bind(R.id.image_view_selected_dot_3)
//     ImageView imgSelectedDot3;
// 
//     /**
//      * Returns a new instance of this fragment for the given section
//      * number.
//      */
//     public static SplashFragment newInstance(int sectionNumber) {
//         SplashFragment fragment = new SplashFragment();
//         Bundle args = new Bundle();
//         args.putInt(ARG_SECTION_NUMBER, sectionNumber);
//         fragment.setArguments(args);
//         return fragment;
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container,
//                              Bundle savedInstanceState) {
//         View view = inflater.inflate(R.layout.fragment_splash, container, false);
//         ButterKnife.bind(this, view);
//         return view;
//     }
// 
//     @Override
//     public void onActivityCreated(Bundle savedInstanceState) {
//         super.onActivityCreated(savedInstanceState);
//         int sectionNumber = getArguments().getInt(ARG_SECTION_NUMBER);
//         txtSplashTitle.setText(getString(R.string.section_format, sectionNumber));
// 
//         switch (sectionNumber) {
//             case 1:
//                 txtSplashTitle.setText(R.string.splash_title_1);
//                 txtSplashDesc.setText(R.string.splash_desc_1);
//                 imgSplash.setImageResource(R.drawable.splash_1);
//                 relativeLayoutSplash.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.md_blue_grey_500));
//                 imgSelectedDot1.setVisibility(View.VISIBLE);
//                 imgSelectedDot2.setVisibility(View.INVISIBLE);
//                 imgSelectedDot3.setVisibility(View.INVISIBLE);
//                 break;
//             case 2:
//                 txtSplashTitle.setText(R.string.splash_title_2);
//                 txtSplashDesc.setText(R.string.splash_desc_2);
//                 imgSplash.setImageResource(R.drawable.splash_2);
//                 relativeLayoutSplash.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.colorAccent));
//                 imgSelectedDot1.setVisibility(View.INVISIBLE);
//                 imgSelectedDot2.setVisibility(View.VISIBLE);
//                 imgSelectedDot3.setVisibility(View.INVISIBLE);
//                 break;
//             case 3:
//                 txtSplashTitle.setText(R.string.splash_title_3);
//                 txtSplashDesc.setText(R.string.splash_desc_3);
//                 imgSplash.setImageResource(R.drawable.splash_3);
//                 relativeLayoutSplash.setBackgroundColor(ContextCompat.getColor(getActivity(), R.color.colorPrimary));
//                 imgSelectedDot1.setVisibility(View.INVISIBLE);
//                 imgSelectedDot2.setVisibility(View.INVISIBLE);
//                 imgSelectedDot3.setVisibility(View.VISIBLE);
//                 break;
//         }
//     }
// }


// Path: app/src/main/java/com/crazyhitty/chdev/ks/munch/ui/adapters/SplashPagerAdapter.java
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.crazyhitty.chdev.ks.munch.ui.fragments.SplashFragment;

package com.crazyhitty.chdev.ks.munch.ui.adapters;



/**
 * Created by Kartik_ch on 12/17/2015.
 */
public class SplashPagerAdapter extends FragmentPagerAdapter {

    public SplashPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        // getItem is called to instantiate the fragment for the given page.
        // Return a PlaceholderFragment (defined as a static inner class below).
        return SplashFragment.newInstance(position + 1);