Skip to content

Commit

Permalink
Update README and 1.0.0.md, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentuso committed Oct 24, 2016
1 parent 5e3738e commit d0043e7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 18 deletions.
10 changes: 5 additions & 5 deletions 1.0.md → 1.0.0.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Welcome 1.0
===========
Welcome 1.0.0
=============

Breaking changes
----------------

### Classes

All classes were moved into the package `com.stephentuso.welcome`
All classes were moved into the package `com.stephentuso.welcome` (update the proguard rule!)

`WelcomeScreen*` renamed to `Welcome*` (e.g. `WelcomeScreenConfiguration` -> `WelcomeConfiguration`\)

Expand Down Expand Up @@ -51,11 +51,11 @@ A fade animation was added to the ViewPager indicator, and it is now the default

### Resources

Most resources other than WelcomeScreenTheme and its child themes were marked as private private, and were renamed with the prefix `wel_`.
Most resources other than WelcomeScreenTheme and its child themes were marked as private, and were renamed with the prefix `wel_`.

Other changes
-------------

### WelcomeActivity

The ViewPager variable `viewPager` is now protected so that you can do things like use a custom `PageTransformer`.
The ViewPager variable `viewPager` is now accessible in subclasses, so that you can do things like use a custom `PageTransformer`.
52 changes: 41 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Welcome
=======

[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Welcome-blue.svg?style=flat)](http://android-arsenal.com/details/1/3610) [![Download](https://api.bintray.com/packages/stephentuso/maven/welcome/images/download.svg)](https://bintray.com/stephentuso/maven/welcome/_latestVersion) [![Build Status](https://travis-ci.org/stephentuso/welcome-android.svg?branch=master)](https://travis-ci.org/stephentuso/welcome-android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f88fea4256a24130959e16d5c30578ce)](https://www.codacy.com/app/tusodev/welcome-android?utm_source=github.com&utm_medium=referral&utm_content=stephentuso/welcome-android&utm_campaign=Badge_Grade)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Welcome-blue.svg?style=flat)](http://android-arsenal.com/details/1/3610) [![Download](https://api.bintray.com/packages/stephentuso/maven/welcome/images/download.svg)](https://bintray.com/stephentuso/maven/welcome/_latestVersion) [![Build Status](https://travis-ci.org/stephentuso/welcome-android.svg?branch=master)](https://travis-ci.org/stephentuso/welcome-android) [![codecov](https://codecov.io/gh/stephentuso/welcome-android/branch/master/graph/badge.svg)](https://codecov.io/gh/stephentuso/welcome-android) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/f88fea4256a24130959e16d5c30578ce)](https://www.codacy.com/app/tusodev/welcome-android?utm_source=github.com&utm_medium=referral&utm_content=stephentuso/welcome-android&utm_campaign=Badge_Grade)

An easy to use and customizable welcome screen for Android apps.

Expand All @@ -22,6 +22,10 @@ Please open a new [issue](https://github.com/stephentuso/welcome-android/issues)

[Changelog/Releases](https://github.com/stephentuso/welcome-android/releases)

**Major Changes in 1.0.0**

If you used the library prior to version 1.0, read [1.0.0.md](https://github.com/stephentuso/welcome-android/blob/master/1.0.0.md) for details on all breaking changes.

Demo
====

Expand Down Expand Up @@ -69,7 +73,7 @@ This library is available through jCenter.
Gradle:

```groovy
compile 'com.stephentuso:welcome:0.7.3'
compile 'com.stephentuso:welcome:1.0.0'
```

If you use proguard, add the following to your proguard rules
Expand Down Expand Up @@ -162,30 +166,56 @@ See [Results](https://github.com/stephentuso/welcome-android#results) below for
Included pages
==============

Title page
----------
The classes listed below are subclasses of `WelcomePage` and can be used with the `page` method of `WelcomeConfiguration.Builder`

TitlePage
---------

A page with an image and a title. A parallax effect can be applied to the image.

Basic page
----------
Constructor:

```java
TitlePage(@DrawableRes int drawableResId, String title)
```

BasicPage
---------

A page with an image, heading, and description. A parallax effect can be applied to the image.

Parallax page
-------------
Constructor:

```java
BasicPage(@DrawableRes int drawableResId, String title, String description)
```

ParallaxPage
------------

Similar to the basic page, but instead of an image you can supply a layout that will have a parallax effect applied to it. The speed at which the layout's children move is determined by their position in the layout, the first will move the slowest and the last will move the fastest.

Full screen parallax page
-------------------------
Constructor:

```java
ParallaxPage(@LayoutRes int layoutResId, String title, String description)
```

FullscreenParallaxPage
----------------------

Applies a parallax effect in the same way the normal parallax page does, but the layout you provide fills the whole fragment, and there isn't a header or description.

Constructor:

```java
FullscreenParallaxPage(@LayoutRes int layoutResId)
```

Custom pages
============

You can add your own fragments to the welcome screen with `Builder.page()`:
You can add your own fragments to the welcome screen with `FragmentWelcomePage`:

```java
@Override
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
GROUP=com.stephentuso
VERSION_NAME=0.7.3
VERSION_CODE=18
VERSION_NAME=1.0.0
VERSION_CODE=19

LIBRARY_PACKAGING=aar
LIBRARY_NAME=welcome
Expand Down

0 comments on commit d0043e7

Please sign in to comment.