diff --git a/README.md b/README.md index e69990d983c0f33865da8b6639c127fd70248b97..45c6439b648552e5854fa916445d9b38e662778b 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,12 @@ This library offloads as much work as possible to the parent layout to ensure th size calculations behave as expected. This means that even complex features such as DirectionLayout's weight tag are properly supported. # Usage Instructions + 1. A sample project which provides runnable code examples that demonstrate uses of the classes in this project is available in the demo/ folder. 2. The following core classes and xml are the essential interface to create the expandablelayout: expandable layout :- + ```xml - - and java function - - private ExpandableLayout expandableLayout0; - expandableLayout0.setExpanded(true, false); - expandableLayout0.collapse(false); - expandableLayout0.setDuration(1000); - -# Installation Instructions + ``` - 1.For using expandable lib module in sample app,include the below library dependency to generate hap file: - Add the dependencies in entry/build.gradle as below : + and java function + + ```java + private ExpandableLayout expandableLayout0; + expandableLayout0.setExpanded(true, false); + expandableLayout0.collapse(false); + expandableLayout0.setDuration(1000); + ``` - dependencies { - implementation project(path ':library’) - } +# Installation Instructions - 2. Using the library har file , make sure to add the library.har file in the entry/libs folder and add the below - dependency in build.gradle. +1.For using expandable lib module in sample app,include the below library dependency to generate hap file: + Add the dependencies in entry/build.gradle as below : + ```groovy + dependencies { + implementation project(path ':library’) + } + ``` +2. Using the library har file , make sure to add the library.har file in the entry/libs folder and add the below + dependency in build.gradle. Modify the dependencies in the entry/build.gradle file. - dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - } - 3. For using ExpandableLayout from a remote repository in separate application, add the below dependencies and include "library.har" in libs folder of "entry" module : - Modify entry build.gradle as below : - ``` + ```groovy + dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) + } + ``` + +3. For using ExpandableLayout from a remote repository in separate application, add the below dependencies and include "library.har" in libs folder of "entry" module : + + Modify entry build.gradle as below : + + ```groovy dependencies { implementation fileTree(dir: 'libs', include: ['*.har']) implementation 'io.openharmony.tpc.thirdlib:ExpandableLayout:1.0.1' - } - ``` + } + ``` + # License + Copyright 2016 Daniel Cachapa. Licensed under the Apache License, Version 2.0 (the "License");