FlipView Versions Save

Flipping views like Gmail & beyond

1.2.0

5 years ago

Project update:

  • Android Studio 3.2
  • AndroidX 1.0.0
  • SDK 28
  • Gradle 4.10.2

1.1.3

7 years ago
  • Pulled #13: Improved "checked" status, it had wrong value after flipping programmatically more than 2 times.
  • DemoApp: changed signature and fixed scrolling in landscape.
  • Upgraded project.

1.1.2

7 years ago
  • 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

1.1.1

8 years ago
  • Added support to enable/disable flipping programmatically. Overridden setClickable() and setEnabled() [See #8].
  • Adapted demo App to show how to make clickable/enabled/disabled the view.

1.1.0

8 years ago
  • 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 with alpha value, 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 example to show Autostart and how 2 entire layouts can be animated ;-)

1.0.0

8 years ago
  • Initial LayoutAnimation & Initial LayoutAnimationDuration; Reset & stop LayoutAnimationDelay
  • Custom In&Out Animation; Rear ImageAnimation & Rear ImageAnimationDuration
  • MainAnimationDuration
  • Flip & flipSilently
  • Custom FrontLayout & several custom RearLayout
  • Create BitmapFrom, PictureDrawable & ImageBitmap
  • Custom FrontImage, custom FrontText &, custom RearImage
  • Custom Child BackgroundDrawable & color
  • Create inner OvalDrawable, ScaleAnimation
  • Some animation and Drawables already included into he project, so you can start to test it
  • OnFlippingListener, inner onClick
  • Example Activity