# TextViewOverflowing **Repository Path**: applibgroup/TextViewOverflowing ## Basic Information - **Project Name**: TextViewOverflowing - **Description**: Custom HMOS view to allow reflowing text from one TextView to another - **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-07-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![.github/workflows/main.yml](https://github.com/applibgroup/TextViewOverflowing/actions/workflows/main.yml/badge.svg)](https://github.com/applibgroup/TextViewOverflowing/actions/workflows/main.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=applibgroup_TextViewOverflowing&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=applibgroup_TextViewOverflowing) # TextViewOverflowing TextViewOverflowing is a HMOS library that provides custom view and allows reflowing from one TextView to another. ## Source Inspired by [JustinAngel/TextViewOverflowing](https://github.com/JustinAngel/TextViewOverflowing) ## Feature This library provides feature to allow reflowing TextView from one textview to another textview. ![](screenshots/textviewoverflowing.png) ## Dependency 1. For using TextViewOverflowing 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']) testImplementation 'junit:junit:4.13' ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100' implementation project(':textviewoverflow') } ``` 2. For using TextViewOverflowing 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: ['*.jar']) testImplementation 'junit:junit:4.13' } ``` 3. For using TextViewOverflowing from a remote repository in separate application, add the below dependencies in entry/build.gradle file. ``` groovy dependencies { implementation ('dev.applibgroup:textviewoverflowing:1.0.0') testCompile 'junit:junit:4.13' } ``` ## Usage #### Xml ```xml ``` #### Java ```java TextViewOverflowing textViewOverflowing = (TextViewOverflowing)findComponentById(ResourceTable.Id_TextViewOverflowing); textViewOverflowing.setOverflowTextViewId(ResourceTable.Id_overflowTextView); ``` ### License Do whatever you'd like with this code. ("MIT license")