# SizeAdjustingTextView
**Repository Path**: applibgroup/SizeAdjustingTextView
## Basic Information
- **Project Name**: SizeAdjustingTextView
- **Description**: This is based on an open source autosizing textview for HMOS.
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-12-16
- **Last Updated**: 2024-06-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[](https://github.com/applibgroup/SizeAdjustingTextView/actions/workflows/main.yml) [](https://sonarcloud.io/summary/new_code?id=applibgroup_SizeAdjustingTextView)
# SizeAdjustingTextView
This is based on an open source autosizing text component for Hmos.
## Source
Inspired by [erchenger/SizeAdjustingTextView](https://github.com/erchenger/SizeAdjustingTextView)
## Feature
SizeAdjustingTextView is a library that allows user to input text of any length of characters which will auto resize the text within the custom component.
Resizing multiple lines in the text component to keep up the changes.
## Dependency
1. For using sizeadjustingtextview module in sample app, include the source code and add the below dependencies in entry/build.gradle to generate hap/support.har.
```groovy
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
implementation project(path: ':sizeadjustingtextview')
testImplementation 'junit:junit:4.13'
ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100'
}
```
2. For using sizeadjustingtextview in separate application using har file, add the har file in the entry/libs folder and add the dependencies in entry/build.gradle file.
```groovy
dependencies {
implementation fileTree(dir: 'libs', include: ['*.har'])
testImplementation 'junit:junit:4.13'
}
```
3. For using sizeadjustingtextview from a remote repository in separate application, add the below dependencies in entry/build.gradle file.
``` groovy
dependencies {
implementation 'dev.applibgroup:sizeadjustingtextview:1.0.0'
testCompile 'junit:junit:4.13'
}
```
## Usage
#### In code
```
XML:
JAVA:
SizeAdjustingTextView mTopMessageBox = (SizeAdjustingTextView) findComponentById(ResourceTable.Id_topBox);
TextMover.moveTextFromCellToCell(mBottomMiddleBox, mBottomRightBox);
```