All Projects → open-android → GuideDialog

open-android / GuideDialog

Licence: MIT license
一行代码实现引导界面对话框

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to GuideDialog

Intranet-Lets-Encrypt-Certification
Guide to setting up a Let's Encrypt SSL certificate for a non-public facing server.
Stars: ✭ 27 (-48.08%)
Mutual labels:  guide
development-guide
A set of guidelines and best practices for an awesome engineering team
Stars: ✭ 119 (+128.85%)
Mutual labels:  guide
OWASP-Calculator
🧮 An online calculator to assess the risk of web vulnerabilities based on OWASP Risk Assessment
Stars: ✭ 109 (+109.62%)
Mutual labels:  guide
A-Personal-Arch-Installation-Guide
A Personal Arch Installation Guide In Case of Amnesia
Stars: ✭ 58 (+11.54%)
Mutual labels:  guide
frontendpath
A correct path to front-end development.
Stars: ✭ 60 (+15.38%)
Mutual labels:  guide
one-cent-blog
The template for a one cent/month blog using S3, Cloudflare, Jekyll and Travis-Ci
Stars: ✭ 13 (-75%)
Mutual labels:  guide
hacking-datascience
Notebooks and design assets related to my publication 'hacking-datascience' on Medium.
Stars: ✭ 41 (-21.15%)
Mutual labels:  guide
SFMC-Cookbook
How to survive as a developer for Salesforce Marketing Cloud
Stars: ✭ 70 (+34.62%)
Mutual labels:  guide
elixir getting started guide to go
Elixir Getting Started Guide (EPUB format)
Stars: ✭ 19 (-63.46%)
Mutual labels:  guide
Hello-Kaggle-Guide-KOR
Kaggle을 처음 접하는 사람들을 위한 문서
Stars: ✭ 140 (+169.23%)
Mutual labels:  guide
GuideChimp
Create interactive guided product tours in minutes with the most non-technical friendly, lightweight and extendable library.
Stars: ✭ 138 (+165.38%)
Mutual labels:  guide
Clover-Crate
Clover Bootloader (with Quirks) and Clover Configurator explained. My attempt of creating a usable documentation for the popular boot manager.
Stars: ✭ 61 (+17.31%)
Mutual labels:  guide
68Keys.io
Build your own 68% Custom Mechanical Keyboard.
Stars: ✭ 56 (+7.69%)
Mutual labels:  guide
framestack
Tools, Frameworks & Libraries to help you build your projects ✨
Stars: ✭ 27 (-48.08%)
Mutual labels:  guide
django-for-newborn-babies
Of course not for newborn babies 👶 A Django (Python's web framework) guide for those who are not sure where to start.
Stars: ✭ 19 (-63.46%)
Mutual labels:  guide
FreeML
Data Science Resources (Mostly Free)
Stars: ✭ 55 (+5.77%)
Mutual labels:  guide
AppGuideOverlay
macOS user interface guide to display an overlay with descriptions of NSViews in your app
Stars: ✭ 17 (-67.31%)
Mutual labels:  guide
dev-log
A comprehensive list of links and resources about anything programming related
Stars: ✭ 55 (+5.77%)
Mutual labels:  guide
ccd-reduction-and-photometry-guide
Read the CCD guide here:
Stars: ✭ 55 (+5.77%)
Mutual labels:  guide
go-appsync-graphql-cloudformation
AWS AppSync GraphQL API Proxy with Lambda, CloudFormation, and SAM
Stars: ✭ 28 (-46.15%)
Mutual labels:  guide

一行代码实现ofo app首次注册时的步骤控件

stepdialog

欢迎关注微信公众号

1. 在project的build.gradle添加如下代码(如下图)

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

2. 添加依赖

dependencies {
     compile 'com.github.open-android:GuideDialog:0.1.0'
}

Usage

ItHeiMaDialog.getInstance()
                .setImages(new int[]{R.drawable.new_user_guide_1, R.drawable.new_user_guide_2, R.drawable.new_user_guide_3, R.drawable.new_user_guide_4})
                .show(getFragmentManager());

API

API 释义
setPageTransformer ViewPager切换动画方式,分为DepthPageTransformer和ZoomOutPageTransformer两种方式
setCanceledOnTouchOutside 点击四周是否取消dialog,默认取消
setOutsideIsTransparent 设置背景四周是否透明,调用时需要放到show方法后面

ViewPager的两种切换方式

DepthPageTransformer方式

示例

ItHeiMaDialog.getInstance()
                        .setImages(new int[]{com.itheima.dialogviewpager.R.drawable.new_user_guide_1, com.itheima.dialogviewpager.R.drawable.new_user_guide_2, com.itheima.dialogviewpager.R.drawable.new_user_guide_3, com.itheima.dialogviewpager.R.drawable.new_user_guide_4})
                        .setPageTransformer(new DepthPageTransformer())
                        .show(getFragmentManager());

t1

ZoomOutPageTransformer方式

示例

ItHeiMaDialog.getInstance()
                        .setImages(new int[]{com.itheima.dialogviewpager.R.drawable.new_user_guide_1, com.itheima.dialogviewpager.R.drawable.new_user_guide_2, com.itheima.dialogviewpager.R.drawable.new_user_guide_3, com.itheima.dialogviewpager.R.drawable.new_user_guide_4})
                        .setPageTransformer(new ZoomOutPageTransformer())
                        .show(getFragmentManager());

t1

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].