// Path: app/src/main/java/org/parallelzero/hancel/Fragments/SlideItemFragment.java
// public class SlideItemFragment extends Fragment {
// 
//     public static String TAG = SlideItemFragment.class.getSimpleName();
//     private static final boolean DEBUG = Config.DEBUG;
//     private static final String ARG_LAYOUT_RES_ID = "layoutResId";
//     private static final String ARG_LAYOUT_BG_ID = "layoutBackgroundId";
//     private int layoutResId;
//     private int layoutBgId;
// 
//     public static SlideItemFragment newInstance(int layoutResId) {
//         SlideItemFragment sampleSlide = new SlideItemFragment();
//         Bundle args = new Bundle();
//         args.putInt(ARG_LAYOUT_RES_ID, layoutResId);
//         sampleSlide.setArguments(args);
// 
//         return sampleSlide;
//     }
// 
//     public static SlideItemFragment newInstance(int layoutResId, int background){
//         SlideItemFragment sampleSlide = new SlideItemFragment();
//         Bundle args = new Bundle();
//         args.putInt(ARG_LAYOUT_RES_ID, layoutResId);
//         sampleSlide.setArguments(args);
//         args.putInt(ARG_LAYOUT_BG_ID, background);
//         sampleSlide.setArguments(args);
// 
//         return sampleSlide;
//     }
// 
// 
//     public SlideItemFragment() {
// 
//     }
// 
//     @Override
//     public void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         Log.i(TAG, getArguments() != null?"NULL":"NOT NULL");
// 
//         if (getArguments() != null && getArguments().containsKey(ARG_LAYOUT_RES_ID))
//             layoutResId = getArguments().getInt(ARG_LAYOUT_RES_ID);
// 
//         if (getArguments() != null && getArguments().containsKey(ARG_LAYOUT_BG_ID))
//             layoutBgId = getArguments().getInt(ARG_LAYOUT_BG_ID);
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// 
//         if(DEBUG) Log.i(TAG, "onCreateView " + " " + layoutBgId + " " + layoutResId);
// 
//         if(layoutResId !=0 && layoutBgId != 0) {
//             View rootView = inflater.inflate(R.layout.welcome, container, false);
//             RelativeLayout layout = (RelativeLayout) rootView.findViewById(R.id.rl_welcome_bigimage);
//             layout.setBackgroundResource(layoutBgId);
//             return rootView;
//         }
//         else if(layoutResId != 0)
//             return inflater.inflate(layoutResId, container, false);
// 
//         return null;
//     }
// }


import android.content.Intent;
import android.os.Bundle;
import com.github.paolorotolo.appintro.AppIntro;
import com.github.paolorotolo.appintro.AppIntro2;
import com.github.paolorotolo.appintro.AppIntroFragment;
import android.app.Activity;
import org.parallelzero.hancel.Fragments.SlideItemFragment;
package org.parallelzero.hancel;




/**
 * Created by izel on 8/11/15.
 */
public class IntroActivity extends AppIntro2 {
    @Override
    public void init(Bundle savedInstanceState) {
// Path: app/src/main/java/org/parallelzero/hancel/Fragments/SlideItemFragment.java
// public class SlideItemFragment extends Fragment {
// 
//     public static String TAG = SlideItemFragment.class.getSimpleName();
//     private static final boolean DEBUG = Config.DEBUG;
//     private static final String ARG_LAYOUT_RES_ID = "layoutResId";
//     private static final String ARG_LAYOUT_BG_ID = "layoutBackgroundId";
//     private int layoutResId;
//     private int layoutBgId;
// 
//     public static SlideItemFragment newInstance(int layoutResId) {
//         SlideItemFragment sampleSlide = new SlideItemFragment();
//         Bundle args = new Bundle();
//         args.putInt(ARG_LAYOUT_RES_ID, layoutResId);
//         sampleSlide.setArguments(args);
// 
//         return sampleSlide;
//     }
// 
//     public static SlideItemFragment newInstance(int layoutResId, int background){
//         SlideItemFragment sampleSlide = new SlideItemFragment();
//         Bundle args = new Bundle();
//         args.putInt(ARG_LAYOUT_RES_ID, layoutResId);
//         sampleSlide.setArguments(args);
//         args.putInt(ARG_LAYOUT_BG_ID, background);
//         sampleSlide.setArguments(args);
// 
//         return sampleSlide;
//     }
// 
// 
//     public SlideItemFragment() {
// 
//     }
// 
//     @Override
//     public void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         Log.i(TAG, getArguments() != null?"NULL":"NOT NULL");
// 
//         if (getArguments() != null && getArguments().containsKey(ARG_LAYOUT_RES_ID))
//             layoutResId = getArguments().getInt(ARG_LAYOUT_RES_ID);
// 
//         if (getArguments() != null && getArguments().containsKey(ARG_LAYOUT_BG_ID))
//             layoutBgId = getArguments().getInt(ARG_LAYOUT_BG_ID);
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
// 
//         if(DEBUG) Log.i(TAG, "onCreateView " + " " + layoutBgId + " " + layoutResId);
// 
//         if(layoutResId !=0 && layoutBgId != 0) {
//             View rootView = inflater.inflate(R.layout.welcome, container, false);
//             RelativeLayout layout = (RelativeLayout) rootView.findViewById(R.id.rl_welcome_bigimage);
//             layout.setBackgroundResource(layoutBgId);
//             return rootView;
//         }
//         else if(layoutResId != 0)
//             return inflater.inflate(layoutResId, container, false);
// 
//         return null;
//     }
// }


// Path: app/src/main/java/org/parallelzero/hancel/IntroActivity.java
import android.content.Intent;
import android.os.Bundle;
import com.github.paolorotolo.appintro.AppIntro;
import com.github.paolorotolo.appintro.AppIntro2;
import com.github.paolorotolo.appintro.AppIntroFragment;
import android.app.Activity;
import org.parallelzero.hancel.Fragments.SlideItemFragment;

package org.parallelzero.hancel;




/**
 * Created by izel on 8/11/15.
 */
public class IntroActivity extends AppIntro2 {
    @Override
    public void init(Bundle savedInstanceState) {
        addSlide(SlideItemFragment.newInstance(R.layout.welcome, R.drawable.slide_rings));