Popularity
0.5
Stable
Activity
0.0
Stable
2
2
1

Description

An easy to use CutableTextView when you need cut long text.

Programming language: Java
License: Apache License 2.0
Latest version: v1.0

CutableTextView alternatives and similar packages

Based on the "TextView/EditText Widget" category.
Alternatively, view CutableTextView alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of CutableTextView or a related project?

Add another 'TextView/EditText Widget' Package

README

cutable_text_view_icon

badge android platform badge v0.0.1

An easy to use CutableTextView when you need to cut a long text. ✂️ ✂️ ✂️

videotogif_2018 06 27_14 36 36

Gradle

dependencies {
    implementation 'com.github.devit951:cutabletextview:0.0.1'
    ...
}

Usage

   <com.david.cutabletextview.CutableTextView
        android:id="@+id/ctv_sample"
        android:layout_margin="16dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Some loooooooooooooooooooooooooooooooooooooooooooooooong text"
        app:ctv_lines_to_cut=4"/>

Attributes

app:ctv_lines_to_cut= cuts as many lines as you want (default 4).

If you want change this value programmatically , call this method CutableTextView#setLinesToCut(int lines);