// Path: app/src/main/java/com/haogefeifei/odoo/ui/fragment/SampleSlide.java
// public class SampleSlide extends Fragment {
// 
//     private static final String ARG_LAYOUT_RES_ID = "layoutResId";
// 
//     public static SampleSlide newInstance(int layoutResId) {
//         SampleSlide sampleSlide = new SampleSlide();
// 
//         Bundle args = new Bundle();
//         args.putInt(ARG_LAYOUT_RES_ID, layoutResId);
//         sampleSlide.setArguments(args);
// 
//         return sampleSlide;
//     }
// 
//     private int layoutResId;
// 
//     public SampleSlide() {}
// 
//     @Override
//     public void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         if(getArguments() != null && getArguments().containsKey(ARG_LAYOUT_RES_ID))
//             layoutResId = getArguments().getInt(ARG_LAYOUT_RES_ID);
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         return inflater.inflate(layoutResId, container, false);
//     }
// 
// }


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.WindowManager;
import com.github.paolorotolo.appintro.AppIntro;
import com.haogefeifei.odoo.R;
import com.haogefeifei.odoo.ui.fragment.SampleSlide;
package com.haogefeifei.odoo.ui.activity;



/**
 * 介绍Activity
 */
public class IntroActivity extends AppIntro {

    public static final String TAG = "IntroActivity";

    @Override
    public void init(@Nullable Bundle savedInstanceState) {

// Path: app/src/main/java/com/haogefeifei/odoo/ui/fragment/SampleSlide.java
// public class SampleSlide extends Fragment {
// 
//     private static final String ARG_LAYOUT_RES_ID = "layoutResId";
// 
//     public static SampleSlide newInstance(int layoutResId) {
//         SampleSlide sampleSlide = new SampleSlide();
// 
//         Bundle args = new Bundle();
//         args.putInt(ARG_LAYOUT_RES_ID, layoutResId);
//         sampleSlide.setArguments(args);
// 
//         return sampleSlide;
//     }
// 
//     private int layoutResId;
// 
//     public SampleSlide() {}
// 
//     @Override
//     public void onCreate(@Nullable Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
// 
//         if(getArguments() != null && getArguments().containsKey(ARG_LAYOUT_RES_ID))
//             layoutResId = getArguments().getInt(ARG_LAYOUT_RES_ID);
//     }
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//         return inflater.inflate(layoutResId, container, false);
//     }
// 
// }


// Path: app/src/main/java/com/haogefeifei/odoo/ui/activity/IntroActivity.java
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.WindowManager;
import com.github.paolorotolo.appintro.AppIntro;
import com.haogefeifei.odoo.R;
import com.haogefeifei.odoo.ui.fragment.SampleSlide;

package com.haogefeifei.odoo.ui.activity;



/**
 * 介绍Activity
 */
public class IntroActivity extends AppIntro {

    public static final String TAG = "IntroActivity";

    @Override
    public void init(@Nullable Bundle savedInstanceState) {

        addSlide(SampleSlide.newInstance(R.layout.view_intro));