# epoxy **Repository Path**: HarmonyOS-tpc/epoxy ## Basic Information - **Project Name**: epoxy - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-17 - **Last Updated**: 2023-04-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Epoxy Epoxy: Epoxy is an openharmony library for building complex screens in a RecyclerView ## Epoxy includes: *Epoxy library includes multiple models like image, text etc., to generate binding models with the help of Epoxy Processor. ## Usage Instructions 1. A sample project which provides runnable code examples that demonstrate uses of the classes in this project is available in the entry/ folder. 2. The following core classes are the essential interface to Epoxy_no_android: RecyclerComponent : used to render items in grid, also bind items with viewholders. 3. The steps to initialize the Epoxy library and the core classes: @Override protected void buildModels(List carousels) { List imageList = new ArrayList<>(); List imageList = new ArrayList<>(); String[] countryArray = context.getStringArray(ResourceTable.Strarray_countries); long id = 54542; for (int pos = 0; pos <= countryArray.length - 1; pos++) { ImageBindingModel_ image = new ImageBindingModel_(); image.id(id+pos).imageRes(ResourceTable.Media_icon).addTo(this); imageList.add(image); } } ## Installation instruction 1.For using module in sample app,include the below library dependency to generate hap/epoxy_annotations.har: Add the dependencies in entry/build.gradle as below : dependencies { implementation project(path: ':epoxy_annotations') implementation 'io.openharmony.tpc.thirdlib:butterKnife:1.0.2' annotationProcessor 'io.openharmony.tpc.thirdlib:butterknife-compiler:1.0.2' ohosTestImplementation 'decc.testkit:harmonyjunitrunner:0.3' implementation project(':recyclerview') implementation project(':epoxy_adapter') annotationProcessor project(':epoxy_processor') implementation 'org.jetbrains:annotations:15.0' implementation 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.0' } 2. Using the epoxy_annotations.har,recyclerview.har,epoxy_adapter.har and epoxy_processor.har , make sure to add all 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']) implementation 'io.openharmony.tpc.thirdlib:butterKnife:1.0.2' annotationProcessor 'io.openharmony.tpc.thirdlib:butterknife-compiler:1.0.2' implementation 'org.jetbrains:annotations:15.0' implementation 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.6.0' } ## License Copyright 2016 Airbnb, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.