Android 引导页库 AppIntro

码农软件 · 软件分类 · Android UI 组件 · 2019-04-25 09:42:22

软件介绍

AppIntro 是一个让人轻松快速搭建漂亮酷炫的引导页库。

效果图:

 

使用

build.gradle:

repositories {
    mavenCentral()
}

dependencies {
  compile 'com.github.paolorotolo:appintro:3.4.0'
}

继承 AppIntro

public class MyIntro extends AppIntro {    // Please DO NOT override onCreate. Use init.
    @Override
    public void init(Bundle savedInstanceState) {        // Add your slide's fragments here.
        // AppIntro will automatically generate the dots indicator and buttons.
        addSlide(first_fragment);
        addSlide(second_fragment);
        addSlide(third_fragment);
        addSlide(fourth_fragment);        // Instead of fragments, you can also use our default slide
        // Just set a title, description, background and image. AppIntro will do the rest.
        addSlide(AppIntroFragment.newInstance(title, description, image, background_colour));        // OPTIONAL METHODS
        // Override bar/separator color.
        setBarColor(Color.parseColor("#3F51B5"));
        setSeparatorColor(Color.parseColor("#2196F3"));        // Hide Skip/Done button.
        showSkipButton(false);
        setProgressButtonEnabled(false);        // Turn vibration on and set intensity.
        // NOTE: you will probably need to ask VIBRATE permisssion in Manifest.
        setVibrate(true);
        setVibrateIntensity(30);
    }    @Override
    public void onSkipPressed() {    // Do something when users tap on Skip button.
    }    @Override
    public void onDonePressed() {    // Do something when users tap on Done button.
    }        @Override
    public void onSlideChanged() {    // Do something when the slide changes.
    }    @Override
    public void onNextPressed() {    // Do something when users tap on Next button.
    }

}

本文地址:https://codercto.com/soft/d/4339.html

C程序设计语言

C程序设计语言

Brian W. Kernighan、Dennis M. Ritchie / 机械工业出版社 / 2006-8-1 / 35.00元

在计算机发展的历史上,没有哪一种程序设计语言像C语言这样应用广泛。本书是C语言的设计者之一Dennis M.Ritchie和著名计算机科学家Brian W.Kernighan合著的一本介绍C语言的权威经典著作。我们现在见到的大量论述C语言程序设计的教材和专著均以此书为蓝本。本书第1版中介绍的C语言成为后来广泛使用的C语言版本——标准C的基础。人们熟知的“hello,World"程序就是由本书首次引......一起来看看 《C程序设计语言》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具