// Path: app/src/main/java/com/mikifus/padland/Intro/LinkableAppIntroFragment.java
// public class LinkableAppIntroFragment extends CustomAppIntroFragment {
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
//                              @Nullable Bundle savedInstanceState) {
//         View v = super.onCreateView(inflater, container, savedInstanceState);
//         TextView d;
//         if (v != null) {
//             d = (TextView) v.findViewById(R.id.description);
//             d.setLinkTextColor(R.color.intro_link_color);
//             Linkify.addLinks(d,Linkify.ALL);
//         }
//         return v;
//     }
// }


import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.core.content.ContextCompat;
import com.github.paolorotolo.appintro.AppIntro2;
import com.github.paolorotolo.appintro.AppIntroFragment;
import com.mikifus.padland.Intro.LinkableAppIntroFragment;
package com.mikifus.padland;



/**
 * Created by mikifus on 7/10/16.
 */

public class IntroActivity extends AppIntro2 {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Note here that we DO NOT use setContentView();

        // Just set a title, description, background and image. AppIntro will do the rest.
//        addSlide(AppIntroFragment.newInstance(title, description, image, backgroundColor));
        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_first_title),
                getString(R.string.intro_first_desc),
                R.drawable.intro_image1,
                ContextCompat.getColor(this, R.color.intro_first_background)));

        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_second_title),
                getString(R.string.intro_second_desc),
                R.drawable.intro_image2,
                ContextCompat.getColor(this, R.color.intro_second_background)));

        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_third_title),
                getString(R.string.intro_third_desc),
                R.drawable.intro_image3,
                ContextCompat.getColor(this, R.color.intro_third_background)));

        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_fourth_title),
                getString(R.string.intro_fourth_desc),
                R.drawable.intro_image4,
                ContextCompat.getColor(this, R.color.intro_fourth_background)));

// Path: app/src/main/java/com/mikifus/padland/Intro/LinkableAppIntroFragment.java
// public class LinkableAppIntroFragment extends CustomAppIntroFragment {
// 
//     @Nullable
//     @Override
//     public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
//                              @Nullable Bundle savedInstanceState) {
//         View v = super.onCreateView(inflater, container, savedInstanceState);
//         TextView d;
//         if (v != null) {
//             d = (TextView) v.findViewById(R.id.description);
//             d.setLinkTextColor(R.color.intro_link_color);
//             Linkify.addLinks(d,Linkify.ALL);
//         }
//         return v;
//     }
// }


// Path: app/src/main/java/com/mikifus/padland/IntroActivity.java
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.core.content.ContextCompat;
import com.github.paolorotolo.appintro.AppIntro2;
import com.github.paolorotolo.appintro.AppIntroFragment;
import com.mikifus.padland.Intro.LinkableAppIntroFragment;

package com.mikifus.padland;



/**
 * Created by mikifus on 7/10/16.
 */

public class IntroActivity extends AppIntro2 {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Note here that we DO NOT use setContentView();

        // Just set a title, description, background and image. AppIntro will do the rest.
//        addSlide(AppIntroFragment.newInstance(title, description, image, backgroundColor));
        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_first_title),
                getString(R.string.intro_first_desc),
                R.drawable.intro_image1,
                ContextCompat.getColor(this, R.color.intro_first_background)));

        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_second_title),
                getString(R.string.intro_second_desc),
                R.drawable.intro_image2,
                ContextCompat.getColor(this, R.color.intro_second_background)));

        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_third_title),
                getString(R.string.intro_third_desc),
                R.drawable.intro_image3,
                ContextCompat.getColor(this, R.color.intro_third_background)));

        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_fourth_title),
                getString(R.string.intro_fourth_desc),
                R.drawable.intro_image4,
                ContextCompat.getColor(this, R.color.intro_fourth_background)));

        addSlide(LinkableAppIntroFragment.newInstance(getString(R.string.intro_fifth_title),