From 8a3978ad5ec74e30ec12388d3af88845fadecdd2 Mon Sep 17 00:00:00 2001 From: Davide Steduto Date: Tue, 3 Nov 2015 02:35:12 +0100 Subject: [PATCH] v1.1.0 beta --- README.md | 21 +- build.gradle | 4 +- flipview-app/build.gradle | 3 +- .../src/main/res/drawable/circle_light.xml | 2 +- .../res/drawable/circle_light_transparent.xml | 5 + .../src/main/res/drawable/square_light.xml | 2 +- .../src/main/res/layout/content_flipviews.xml | 25 +- .../main/res/layout/flipview_front_custom.xml | 2 +- .../res/layout/flipview_front_custom_text.xml | 2 +- .../main/res/layout/flipview_rear_custom.xml | 3 +- .../main/res/layout/recycler_view_item.xml | 2 +- flipview-app/src/main/res/values/colors.xml | 9 +- .../java/eu/davidea/flipview/FlipView.java | 395 ++++++++++++------ flipview/src/main/res/values/attrs.xml | 5 +- 14 files changed, 309 insertions(+), 171 deletions(-) create mode 100644 flipview-app/src/main/res/drawable/circle_light_transparent.xml diff --git a/README.md b/README.md index 2ce753d..c109f01 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Flip View -###### Gmail like View & beyond - Master branch: v1 of 2015.11.01 +###### Gmail like View & beyond - Master branch: v1.1 of 2015.11.03 #### Concept FlipView is a ViewGroup (FrameLayout) that is designed to display 2 views/layouts by flipping @@ -23,7 +23,7 @@ Please, refer to those attributes documentation for more details. - Custom layout, ImageView for rear layout. - Custom background Drawable & color. - Custom rear ImageView animation. -- Properties customizable at design time and at run time. +- Properties customizable at design time and at run time with some limitations. # Showcase ![Showcase1](/showcase/showcase1.gif) ![Showcase2](/showcase/showcase2.gif) @@ -32,7 +32,7 @@ Please, refer to those attributes documentation for more details. Import the library into your project using Gradle with JCenter ``` dependencies { - compile 'eu.davidea:flipview:1.0.0' + compile 'eu.davidea:flipview:1.1.0' } ``` Using bintray.com @@ -41,7 +41,7 @@ repositories { maven { url "http://dl.bintray.com/davideas/maven" } } dependencies { - compile 'eu.davidea:flipview:1.0.0@aar' + compile 'eu.davidea:flipview:1.1.0@aar' } ``` #### Pull requests / Issues / Improvement requests @@ -86,13 +86,24 @@ Supported attributes with default values: - `app:rearImagePadding="0dp"` - Rear image padding. - `app:rearImageAnimation="@anim/scale_up"` - Rear image animation. - `app:rearImageAnimationDuration="150"` - Rear image animation duration. +- `app:rearImageAnimationDelay="duration"` - Rear image animation delay (depends the animation/duration it can be smart setting a custom delay). -**Not changable values** (in ms) +**Not changeable values** (in ms) - `DEFAULT_INITIAL_DELAY = 500` - This gives time to the activity to load. - `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. # Change Log +###### v1.1.0 - 2015.11.03 +- New attribute `rearImageAnimationDelay`. +- Fixed bugs #4 #5 #6. +- Overridden `showNext()`. Now it performs 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 `frontBackground` & `rearBackground` + which always override any custom color set with `frontBackgroundColor` & `rearBackgroundColor`: + To give a color with a transparency and custom shape you should assign a Drawable resource with the desired shape + and color (#2 #3) or to assign this resource to the background of the custom layout. +- Desired color with a transparency of the inner drawable (OvalShape) can be assigned at design time & runtime (#2 #3). + ###### v1.0.0 - 2015.11.01 (Initial release) - Initial LayoutAnimation & Initial LayoutAnimationDuration Reset & stop LayoutAnimationDelay diff --git a/build.gradle b/build.gradle index f425eb5..46649a4 100644 --- a/build.gradle +++ b/build.gradle @@ -7,8 +7,8 @@ ext { //Library libraryCode = 1 - libraryVersion = '1.0.0' - libraryDate = " of 2015.11.01" + libraryVersion = '1.1.0' + libraryDate = " of 2015.11.03" libraryDescription = 'Flipping image like Gmail & beyond' libraryName = 'FlipView' diff --git a/flipview-app/build.gradle b/flipview-app/build.gradle index 8b4b9ef..d31b3cc 100644 --- a/flipview-app/build.gradle +++ b/flipview-app/build.gradle @@ -21,7 +21,8 @@ android { dependencies { //See main build.gradle for values & versions - //compile 'eu.davidea:flipview:1.0.0@aar' + //compile 'eu.davidea:flipview:1.1.0' + //compile 'eu.davidea:flipview:1.1.0@aar' compile project (':flipview') compile (supportDependencies.appcompat) { transitive = true; diff --git a/flipview-app/src/main/res/drawable/circle_light.xml b/flipview-app/src/main/res/drawable/circle_light.xml index 8e8571c..93ca06c 100644 --- a/flipview-app/src/main/res/drawable/circle_light.xml +++ b/flipview-app/src/main/res/drawable/circle_light.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/flipview-app/src/main/res/drawable/circle_light_transparent.xml b/flipview-app/src/main/res/drawable/circle_light_transparent.xml new file mode 100644 index 0000000..0e16323 --- /dev/null +++ b/flipview-app/src/main/res/drawable/circle_light_transparent.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/flipview-app/src/main/res/drawable/square_light.xml b/flipview-app/src/main/res/drawable/square_light.xml index e24f9e3..104fea8 100644 --- a/flipview-app/src/main/res/drawable/square_light.xml +++ b/flipview-app/src/main/res/drawable/square_light.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/flipview-app/src/main/res/layout/content_flipviews.xml b/flipview-app/src/main/res/layout/content_flipviews.xml index 336381c..533240e 100644 --- a/flipview-app/src/main/res/layout/content_flipviews.xml +++ b/flipview-app/src/main/res/layout/content_flipviews.xml @@ -41,8 +41,7 @@ app:frontLayout="@layout/flipview_front_custom" app:frontBackgroundColor="@color/colorPrimary" app:frontImage="@drawable/ic_add_shopping_cart_white_24dp" - app:rearLayout="@layout/flipview_rear_custom" - app:rearBackgroundColor="#49814B"/> + app:rearLayout="@layout/flipview_rear_custom"/> - + + + - \ No newline at end of file