Chen-Sir / Expandabletextview
Licence: apache-2.0
Android TextView that can expand and collapse.
Stars: ✭ 632
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Expandabletextview
Android Expandabletextview
An expandable TextView for Android applications
Stars: ✭ 268 (-57.59%)
Mutual labels: textview
Countanimationtextview
A tiny Android library makes very easier count animation of TextView.
Stars: ✭ 392 (-37.97%)
Mutual labels: textview
Kotlinextensions.com
A handy collection of most commonly used Kotlin extensions to boost your productivity.
Stars: ✭ 522 (-17.41%)
Mutual labels: textview
Swiftuix
Extensions and additions to the standard SwiftUI library.
Stars: ✭ 4,087 (+546.68%)
Mutual labels: textview
Rtextview
基于TextView 1.直接设置selector背景2.直接设置drawableLeft大小 3.圆角,圆形,背景/边框/文字根据状态变色
Stars: ✭ 359 (-43.2%)
Mutual labels: textview
Inputkit
📝InputKit, an Elegant Kit to limits your input text, inspired by BlocksKit, written in both Objective-C & ⚡️Swift.
Stars: ✭ 420 (-33.54%)
Mutual labels: textview
TTInputVisibilityController
Lightweight controller to keep your inputs visible when the keyboard is presented.
Stars: ✭ 21 (-96.68%)
Mutual labels: textview
Htextview
Animation effects to text, not really textview
Stars: ✭ 5,309 (+740.03%)
Mutual labels: textview
Advancedtextview
一个增强的TextView库。可以实现文字两端对齐,文字竖排,以及自定义选择文字后的弹出菜单。
Stars: ✭ 365 (-42.25%)
Mutual labels: textview
Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (-53.8%)
Mutual labels: textview
Dropdowntextview
Simple drop-down(expandable) TextView for Android
Stars: ✭ 307 (-51.42%)
Mutual labels: textview
Stacklabel
🔥空祖家的堆叠标签(以下碎念:一开始起名字“StackLabel”没想太多结果被人吐槽Stack是整齐堆叠的意思...........好吧这是我的锅不过现在要改也来不及了,好用就行了...吧?
Stars: ✭ 471 (-25.47%)
Mutual labels: textview
Simplifyspan
A easy-to-use and powerful Spannable library
Stars: ✭ 522 (-17.41%)
Mutual labels: textview
Selectabletextview
A text view that supports selection and expansion
Stars: ✭ 626 (-0.95%)
Mutual labels: textview
Textviewexpandableanimation
Expandable TextView With Smooth Transition Animation
Stars: ✭ 537 (-15.03%)
Mutual labels: textview
ExpandableTextView
The project is no longer maintained!
ExpandableTextView library is a similar copy of ExpandableTextView by Manabu Shimobe , but change a little UI structure and improve the code to make it easier to use.
Setup
Download the library module and add it to your project.
Usage
Using the library is very simple, look at the source code of the provided sample.
Step 1. In your layout xml:
<me.chensir.expandabletextview.ExpandableTextView
android:id="@+id/tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentTextColor="@color/colorPrimary"
app:maxCollapsedLines="4">
</me.chensir.expandabletextview.ExpandableTextView>
Step 2. In your activity:
((ExpandableTextView) findViewById(R.id.tv)).setText(getString(R.string.dummy_text));
Just so !
Also , you can optionally set the following attributes in your layout xml file to customize the behavior of the ExpandableTextView.
-
maxCollapsedLines
(defaults to 8) The maximum number of text lines allowed to be shown when the TextView gets collapsed -
animDuration
(defaults to 300ms) Duration of the Animation for the expansion/collapse -
expandDrawable
Customize a drawable set to ImageButton to expand the TextView -
collapseDrawable
Customize a drawable set to ImageButton to collapse the TextView -
contentTextSize
Customize the text size of content -
contentTextColor
Customize the text color of content -
expandText
Customize the text forexpandDrawable
-
collapseText
Customize the text forcollapseDrawable
-
expandCollapseTextColor
Customize the text color forexpandText
andcollapseText
-
DrawableAndTextGravity
Customize the gravity ofexpandDrawable
andcollapseDrawable
below the content -
contentLineSpacingMultiplier
Sets line spacing multiplier for the content text
Thanks
Manabu Shimobe / ExpandableTextView
License
Copyright 2016 Chen Sir.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].