# ohosSwipeLayout
**Repository Path**: HarmonyOS-tpc/ohosSwipeLayout
## Basic Information
- **Project Name**: ohosSwipeLayout
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-06-26
- **Last Updated**: 2023-04-17
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Demo:
## Download
Gradle:
```groovy
repositories {
mavenCentral()
}
dependencies{
implementation 'io.openharmony.tpc.thirdlib:ohosSwipeLayout:1.0.0'
}
```
### Normal
### Single-column ListContainer
### Multi-column ListContainer
## Usage
### Xml
```xml
....
```
### Java
```java
swipe1 = (SwipeLayout) findComponentById(ResourceTable.Id_swipe1);
swipe1.addDrag(SwipeLayout.DragEdge.Left, ResourceTable.Id_bottom_wrapper);
swipe1.addDrag(SwipeLayout.DragEdge.Right, ResourceTable.Id_bottom_wrapper2);
swipe1.addDrag(SwipeLayout.DragEdge.Top, starBottView);
swipe1.addDrag(SwipeLayout.DragEdge.Bottom, starBottView);
```
## AttrSet
|name|format|description|
|:---:|:---:|:---:|
| clickToClose| boolean | need click to close when open |
| show_mode | int | show mode (LayDown or PullOut) |