# FlycoRoundView
**Repository Path**: HarmonyOS-tpc/FlycoRoundView
## Basic Information
- **Project Name**: FlycoRoundView
- **Description**: A library helps openharmony built-in views easy and convenient to set round rectangle background and accordingly related shape resources can be reduced.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 4
- **Forks**: 0
- **Created**: 2021-04-15
- **Last Updated**: 2025-02-12
## Categories & Tags
**Categories**: harmonyos-advanced
**Tags**: None
## README
## FlycoRoundView
## Introduction
A library helps openharmony built-in views easy and convenient to set round rectangle background and accordingly related shape resources can be reduced.
### Demo
## Usage Instructions
### TextViewDefault
we can see the the background color is changing and text color is not changing while clicking TextView Default
```xml
```
### RadiusHalf Height
makes the view radius to half and rounded clicking on Radius HalfHeight Back ground color is changing to blue and Text color changing to white
```xml
```
### TetView Radius 10vp
On Click the TextView Radius10vp color is changing as per the expectation visible on the UI.
```xml
```
### Radius Top Left
The Radius TopLeft displays rounded corner at TopLeft
```xml
```
### Radius Top Right
The Radius TopRight displaying with round corner at TopRight
```xml
```
### Radius Botttom Left
The Radius BottomLeft displaying with round corner at BottomLeft
```xml
```
### Radius Bottom Right
The Radius BottomRight displaying with round corner at BottomRight
```xml
```
### FrameLayout
The FrameLayout as per the expectation visible on the UI with with image and round corners four sides
```xml
```
### Linear Layout
The Linear Layout displays with Image and background is filled with color as per the expectation visible on the UI.
```xml
```
### RelativeLayout
The Relative Layout displays with Image and background is filled with color as per the expectation visible on the UI.
```xml
```
## Installation Instruction
```
Method 1: Generate har package from library and add it to lib folder.
add following code to gradle of entry
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
Method 2:
allprojects{
repositories{
mavenCentral()
}
}
implementation 'io.openharmony.tpc.thirdlib:FlycoRoundView:1.0.1'
```
## Attributes
|name|format|description|
|:---:|:---:|:---:|
| rv_backgroundColor | color | background color
| rv_backgroundPressColor | color | background press color
| rv_cornerRadius | dimension | background rectangle corner radius,unit vp
| rv_strokeWidth | dimension | background rectangle stroke width,unit vp
| rv_strokeColor | color |background rectangle stroke color
| rv_strokePressColor | color |background rectangle stroke press color
| rv_textPressColor | color |text press color
| rv_isRadiusHalfHeight | boolean | corner radius is half of height
| rv_isWidthHeightEqual | boolean | width and height is the same size which is the max value of them
| rv_cornerRadius_TL | dimension | corner radius top left,unit vp
| rv_cornerRadius_TR | dimension | corner radius top right,unit vp
| rv_cornerRadius_BL | dimension | corner radius bottom left,unit vp
| rv_cornerRadius_BR | dimension | corner radius bottom right,unit vp