changjiashuai's blog

Runnig...

The future belongs to those who believe in the beauty of their dreams.


TextView相关

A Custom TextView with trim text

Download

To add the ReadMoreTextView library to your Android Studio project, simply add the following gradle dependency:

compile 'com.borjabravo:readmoretextview:2.0.1'

Usage

To use the ReadMoreTextView on your app, add the following code to your layout:

<com.borjabravo.readmoretextview.ReadMoreTextView
    android:id="@+id/text_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>

You can customize ReadMoreTextView with:

  • app:trimExpandedText: Text that appears when the view is expanded.
  • app:trimCollapsedText: Text that appears when the view is collapsed.
  • app:trimLength: Trim length to determine when the clickable text is displayed.
  • app:showTrimExpandedText: Show the trim text if it’s true.
  • app:colorClickableText: Text color of trim clickable text.
  • app:trimMode: Choose trim mode with two options: trimModeLength or trimModeLines.

Screenshots

screenshot screenshot

最近的文章

ProgressBar

CircleSeekbar an android circle seekbar libraryquick start1.Add root build.gradle repositories { // ... maven { url "https://jitpack.io" } }2.Add build.gradledependencies { compile 'com.github.feeeei:CircleSeekbar:v1.0.3' }3...…

AndroidProgressBar继续阅读
更早的文章

Slide Bar相关

##Android-QuickSideBar帮助快速查阅对应分组的侧边栏,可以配合任意列表,demo中给出配合RecyclerView(浮动分组使用stickyheadersrecyclerview)。####使用gradle 依赖: compile 'com.bigkoo:quicksidebar:1.0.2'Demo 图片Config in xml<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns...…

AndroidSlide Bar继续阅读