From 0f9dd6e90df837a4eaabca701e98c03e0b041229 Mon Sep 17 00:00:00 2001 From: skydoves Date: Sun, 5 Mar 2023 17:48:49 +0900 Subject: [PATCH] Update README file and prepare for the next release --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b6f4c9d..53fe4b6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

TransformationLayout


-🌠 TransformLayout allows you to transform views, activity, and fragments into other components with container transform animations. +🌠 Transform views, activity, and fragments into other components with container transform animations.


@@ -33,7 +33,7 @@ Add the dependency below to your **module**'s `build.gradle` file: ```gradle dependencies { - implementation("com.github.skydoves:transformationlayout:1.1.1") + implementation("com.github.skydoves:transformationlayout:1.1.2") } ``` @@ -45,8 +45,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" ``` ### TransformationLayout -Here is a basic example of implementing `TransformationLayout`.
-We must wrap up one or more views that we want to transform. +`TransformationLayout` is an essential concept to transform your Views, Activities, and Fragments into other components. You must wrap one or more Views that are supposed to be transformed using `TransformationLayout` like the example code below: ```gradle @@ -95,15 +94,15 @@ Here is a simple example of transform a fab into a view. app:cardBackgroundColor="@color/colorPrimary" /> ``` - #### Bind a TargetView -We can bind a targetView that will be transformed from the `TransformationLayout` using the below attribute in XML.
-If you bind a targetView to the `TransformationLayout`, the targetView's visibility will be `GONE`. +With the attribute below in your XML file, you can bind a `targetView` that should be transformed from the `TransformationLayout`. If you bind a targetView with a `TransformationLayout`, the targetView's visibility will be `GONE` by default. ```gradle app:transformation_targetView="@+id/myCardView" ``` -Or we can bind a targetView using method. + +You can also bind a targetView with a `TransformationLayout` using `bindTargetView` method like the code below: + ```kotlin transformationLayout.bindTargetView(myCardView) ```