Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
davideas committed Nov 30, 2016
1 parent d9d01eb commit d3d0d49
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 37 deletions.
38 changes: 10 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[![Download](https://api.bintray.com/packages/davideas/maven/flipview/images/download.svg) ](https://bintray.com/davideas/maven/flipview/_latestVersion)
[![API](https://img.shields.io/badge/API-14%2B-green.svg?style=flat)](https://android-arsenal.com/api?level=14)
[![Licence](https://img.shields.io/badge/Licence-Apache2-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)

# FlipView

Expand Down Expand Up @@ -91,54 +93,34 @@ Supported attributes with _default_ values:
| `app:rearImageAnimationDuration="150"` | Rear image animation duration.
| `app:rearImageAnimationDelay="animationDuration"` | Rear image animation delay (depends the animation/duration it can be smart setting a specific delay. For Gmail effect set this to 0).

|**Not changeable values** (in ms)||
|**Non changeable values** (in ms)||
|:---|:---|
| `DEFAULT_INITIAL_DELAY = 500` | This gives time to the activity to load all tree views before starting cascade initial animation.
| `DEFAULT_INITIAL_DELAY = 500` | This gives enough time to the activity to load all tree views before starting cascade initial animation.
| `SCALE_STEP_DELAY = 35` | This gives an acceptable nice loading effect.
| `STOP_LAYOUT_ANIMATION_DELAY = 1500` | This gives the time to perform all entry animations but to stop further animations when screen is fully rendered.
| `STOP_LAYOUT_ANIMATION_DELAY = 1500` | This gives enough time to perform all entry animations but to stop further animations when screen is fully rendered.

# Limitations
- Transparency has a little glitch when used with elevation, you could see shadow In the shape: more transparent the color is more visible the shadow is.
- Using layer type _software_ on the entire layout it removes the shadow/elevation.
- Stroke and background color on custom Drawable should be preset by the user: too complex to determine the type of the Drawable used in order to change its color.

# Change Log
###### v1.1.2 - 2016.11.30
###### [v1.1.2](https://github.com/davideas/FlipView/releases/tag/1.1.2) - 2016.11.30
- Fixed #7: don't flip if the target child is the one currently displayed
- Reviewed comments for javaDoc
- Upgraded project and demoApp for API 25

###### v1.1.1 - 2016.04.07
###### [v1.1.1](https://github.com/davideas/FlipView/releases/tag/1.1.1) - 2016.04.07
- Added support to enable/disable flipping programmatically. Overridden `setClickable()` and `setEnabled()` [See #8].
- Adapted demoApp to show how to make clickable/enabled/disabled the view.

###### v1.1.0 - 2015.11.05
- New attribute `app:rearImageAnimationDelay` with relative method.
- Fixed bugs #4 #5 #6.
- Overridden `showNext()` & `showPrevious()` methods from `ViewAnimator`: now they perform the flip accordingly with the existing
settings and register its state.
- Since the FlipView uses shapes to define its border and shadows, one can use `app:frontBackground` & `app:rearBackground`
for the custom Drawable with the desired shape, color and stroke, which always override inner Drawables.
Alternatively you can do this also by assigning the resource to `android:background` of the _custom_ layout.
Because of that, at runtime, the method `setChildBackgroundDrawable(child, drawable)` has been reviewed (#2 #3).
- Instead, if you want to use the inner Drawable (OvalShape) and only change color, you can do it
at design time with `app:frontBackgroundColor` & `app:rearBackgroundColor` and at runtime with the new method
`setChildBackgroundColor(child, color)`: it always creates an OvalShape with the custom color (#2 #3).
**Note:** setBackgroundColor is the method of `android.view.View`, so it does the default job!
- First version of ShapeDrawables static methods (Oval, Arc, RoundRect).
- Added new static method to enable/disable logs at runtime, debug logs are disabled by default.
- Added methods to retrieve front and rear ImageViews and front TextView objects.
- Automatic layer type _software_ when setting PictureDrawable for SVG files (applied on ImageView reference only!).
- Adapted demoApp to show how AutoStart works and how 2 entire layouts can be animated ;-)

###### Old releases
See [releases](https://github.com/davideas/FlipView/releases) for old versions.

v1.0.0 - 2015.11.01
[v1.0.0](https://github.com/davideas/FlipView/releases/tag/1.0.0) - 2015.11.01 |
[v1.1.0](https://github.com/davideas/FlipView/releases/tag/1.1.0) - 2015.11.05

# License

Copyright 2016 Davide Steduto
Copyright 2015-2016 Davide Steduto

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
ext {
//Author
// Author
developerId = 'davideas'
developerName = 'Davide Steduto'
developerEmail = 'dave.dna@gmail.com'

//Library
// Library
libraryCode = 4
libraryVersion = '1.1.2'
libraryDate = " of 2016.11.30"
libraryName = 'FlipView'
libraryDescription = 'Flipping views like GMail & beyond'

//Library Repository
// Library Repository
bintrayRepo = 'maven'
bintrayName = 'flipview'
publishedGroupId = 'eu.davidea'
artifact = bintrayName
siteUrl = 'https://github.com/davideas/FlipView'
gitUrl = 'https://github.com/davideas/FlipView.git'

//Support and Build tools version
minSdk = 19
// Support and Build tools version
minSdk = 14
targetSdk = 25
buildTools = "25.0.1"
supportLibrary = '25.0.1'

//Support Libraries dependencies
// Support Libraries dependencies
supportDependencies = [
design : "com.android.support:design:${supportLibrary}",
recyclerview : "com.android.support:recyclerview-v7:${supportLibrary}",
Expand Down
6 changes: 3 additions & 3 deletions flipview/src/main/java/eu/davidea/flipview/FlipView.java
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,13 @@ public static void enableLogs(boolean enable) {
}

/**
* API 21
* API 22
*
* @return true if the current Android version is Lollipop
* @see Build.VERSION_CODES#LOLLIPOP
* @see Build.VERSION_CODES#LOLLIPOP_MR1
*/
public static boolean hasLollipop() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1;
}

/**
Expand Down

0 comments on commit d3d0d49

Please sign in to comment.