From d3d0d49e440cf837c565488bfda83803c6eeff6b Mon Sep 17 00:00:00 2001 From: Davide Steduto Date: Wed, 30 Nov 2016 19:39:53 +0100 Subject: [PATCH] v1.1.2 --- README.md | 38 +++++-------------- build.gradle | 12 +++--- .../java/eu/davidea/flipview/FlipView.java | 6 +-- 3 files changed, 19 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 7b355a0..99b94fc 100644 --- a/README.md +++ b/README.md @@ -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 @@ -91,11 +93,11 @@ 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. @@ -103,42 +105,22 @@ Supported attributes with _default_ values: - 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. diff --git a/build.gradle b/build.gradle index 3ca507f..f7cb403 100644 --- a/build.gradle +++ b/build.gradle @@ -1,18 +1,18 @@ // 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' @@ -20,13 +20,13 @@ ext { 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}", diff --git a/flipview/src/main/java/eu/davidea/flipview/FlipView.java b/flipview/src/main/java/eu/davidea/flipview/FlipView.java index a801368..0a881a1 100644 --- a/flipview/src/main/java/eu/davidea/flipview/FlipView.java +++ b/flipview/src/main/java/eu/davidea/flipview/FlipView.java @@ -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; } /**