Top Android TextView Libraries
Top Android TextView Libraries.
TextView is one of the most commonly used UI elements in Android development. It is used to display text content on the screen. While the default TextView provided by Android is sufficient for basic text display, there are several third-party libraries available that offer additional features and customization options. In this tutorial, we will explore some of the top Android TextView libraries, their installation process, and provide code usage examples.
1. Android AutoFitTextView
- GitHub Repository: AutoFitTextView
- This library automatically adjusts the text size to fit within the constraints of the TextView.
- To use it in your project, add the following dependency to your app-level build.gradle file:
implementation 'me.grantland:autofittextview:0.2.+'
- Here's an example usage in Kotlin:
val autoFitTextView = findViewById<AutoFitTextView>(R.id.autoFitTextView)
autoFitTextView.setText("This text will automatically adjust its size to fit within the TextView")
2. Calligraphy
- GitHub Repository: Calligraphy
- This library allows you to easily customize the font of your TextViews.
- To use it in your project, add the following dependency to your app-level build.gradle file:
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
- Here's an example usage in Kotlin:
val customFontTextView = findViewById<TextView>(R.id.customFontTextView)
CalligraphyUtils.applyFontToTextView(this, customFontTextView, "fonts/your_custom_font.ttf")
3. JustifiedTextView
- GitHub Repository: JustifiedTextView
- This library provides a TextView implementation that automatically justifies the text.
- To use it in your project, add the following dependency to your app-level build.gradle file:
implementation 'ir.alirezabdn:justifiedtextview:1.0.1'
- Here's an example usage in Kotlin:
val justifiedTextView = findViewById<JustifiedTextView>(R.id.justifiedTextView)
justifiedTextView.setText("This is a long text that will be justified within the TextView")
4. SpannableTextView
- GitHub Repository: SpannableTextView
- This library extends the functionality of the default TextView by allowing you to apply custom styles to specific parts of the text.
- To use it in your project, add the following dependency to your app-level build.gradle file:
implementation 'it.danilao.android:spannabletextview:1.2.2'
- Here's an example usage in Kotlin:
val spannableTextView = findViewById<SpannableTextView>(R.id.spannableTextView)
val spannableString = SpannableString("This is a styled text")
spannableString.setSpan(StyleSpan(Typeface.BOLD), 0, 4, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
spannableTextView.setText(spannableString)
5. LinkableTextView
- GitHub Repository: LinkableTextView
- This library enables you to create clickable links within a TextView.
- To use it in your project, add the following dependency to your app-level build.gradle file:
implementation 'io.github.armcha:LinkableTextView:1.0.0'
- Here's an example usage in Kotlin:
val linkableTextView = findViewById<LinkableTextView>(R.id.linkableTextView)
linkableTextView.setText("Click here to visit my website")
linkableTextView.setOnLinkClickListener(object : OnLinkClickListener {
override fun onLinkClick(link: String) {
// Handle the link click event
// For example, open a browser with the provided link
}
})
Additional Libraries:
AndroidHtmlTextView: GitHub Repository
ExpandableTextView: GitHub Repository
MarqueeTextView: GitHub Repository
ReadMoreTextView: GitHub Repository
ShimmerTextView: GitHub Repository
RotatingText - A periodic text updating library.
emojicon - A library to show emoji in TextView, EditText (like WhatsApp) for Android.
CountAnimationTextView - A tiny Android library makes very easier count animation of TextView..
MaterialBadgeTextView - As the name describes, this is an Android library that you can use to show new messages badge and new features badge..
FlipTimerView - FlipTimerView library for Android.
CompoundIconTextView - An android library that is able to set a vector drawable at text view pre-Lollipop..
countingtextview - Animated Counting TextView library for Android.
typewriterview - Android library for typewriter like effects.
blitz - Android Library: Set self-updating string with relative time in TextView (e.g. 5 minutes ago).
TextViewPlus - an android library for setting custom font in xml layout.
android-formidable-validation - Form validation and feedback library for Android. Provides .setText for more than just TextView and EditText widgets. Provides easy means to validate with dependencies..
Android-WordToSpan - Small & simple library to create a link url, mail, mention, tag and text highlighter in textView..
Zaman - The library provides a custom TextView and Helper for Android to convert timestamp to time String.
KitKatEmoji - Library for Emoji View like Hangouts, Emoji TextView and Emoji EditText.
FadeInTextView-Android - A custom TextView library which makes every character appear with a smooth alpha animation.
FancyFacebookBadge-Android - As the name describes, this is an Android library that you can use to show reacting badges like facebook. .
Stylish-Widget-for-Android - StylishWidget is a library for an Android Application project to make the UI more beautiful and allow to use third party font. This library also contain few view that created by me..
easyCountDownTimer - A simple android library to countdown timer textview for api 14+.
FontTextView - This library include some custom views and a util class help you replace android default font in different ways.(keyword:Font TextView, Custom TextView).
ExpandableTextView - An android library that is TextView performs multiline ellipsize..
AppFontChanger - Custom font library for android | Library to change/add font of Entire Android Application at once without wasting your time - TextViews, EditText, Buttons, Views etc.,.
ShowMoreLess - A simple Android library for displaying a more and less functionality in TextView and very easy to Convert your TextView in ExpandableTextView.
emoji - A library to show emoji in TextView, EditText (like WhatsApp) for Android, simple to integrate and upgrade.
fole - Fole is a simple library to collapse and expand a TextView..
Linker - Lightweight android library for highlighting sections of a textview, with optional callbacks..
html-textview - Android library for display html content in view..
LiveTextView - Android Library to display text while it is being spoken.
FSAnimatedTextView - Animated Number Text View Library.
ClickDrawableTextView - This library add the ability to listen to drawables touch events for TextView subclasses.
EasyFont - Android Library to set font of TextView, Button, EditText, and RadioButton in XML without editing Java code to set Typeface..
ColorStrings - A light weight library which handles multiple colors in a single TextView for Android..
DroidAwesome - An android library to display FontAwesome Icons in any View or a MenuItem.
typography - DEPRECATED. Use the native and support library variants instead - https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html. An android library that makes it easy to add custom fonts to edittexts and textviews.
CounterAnimationTextView - A tiny Android library makes very easier count animation of TextView..
TextViewReadMore - Android library for creating expand button on your long textview .
MultiStyleTextView - Android library to show multiple style in a textView, include size, color, underline and so on.
TypeWriter-TextView - Android Library to Get Smooth and Polished Typewriter Effect for TextView.
ToolTipPopupWordTV - ToolTipopupWordTV is an Open Source Android library that allows developers to easily open a popup with details by select a word from a textview..
CircleTextView - This is an Android library that will help users to have a circular TextView with an intial inside just like Gmail app with random colors that are genrated automatically..
SuperGradientTextView - A simple library to add gradient color to textView in android native.
Android-Edit-Textview-Library - A Library to manage properties of Edittext and Textview.
EditableTextView - Edittable TextView Library for Android.
ShowMoreTextView - An Expandable TextView library for Android written in Kotlin.
GitDiffTextView - With this android library you are able to display DIFF in a TextView..
ColorfulTextView - A simple library to create colorful TextViews.
ShimmerTextView - ShimmerTextView is a simple library to integrate shimmer effect in your TextView..
ChipTextViewHelper - Android demo app/library for easy implementation of chip-like text in your TextViews (EditText, AutoCompleteTextView, etc..).
FlashingTextView - FlashingTextView is an android library that includes custom textview, which is similar to the on from the Dialer App in Android Lollipop..
ExpandableTextView - Expandable Text View Android Library.
JustifiedTextView - A library to achieve justified TextView for both RTL and LTR texts.
ScalableScrollView - This library is modification of android.widget.ScrollView and allows user to resize TextView, placed into it, by two fingers..
textviewformatter - android library for textview formatter.
Highlight - A complete and performing library to highlight text snippets (EditText, SpannableString and TextView) using Spannable with Regular Expressions (Regex) for Android..
android-textviewj - Library which makes up a TextView with full justification text (Deprecated).
GradientTextView - This is An Android Library project, which implements a TextView with text gradient..
SimpleVerticalTextView - android vertical textview library.
android-fixed-typeface-textview - Provides one subclass of Android TextView that its fixed typeface will NOT be affected by global typeface libraries and methods, used mainly for font text views.
AutosizeTextview - Android Implementation for Autosize Textview using Support library..
RackFontTextView - android library custom font TextView.
RandomTextView - a Android Library for pickup random text from list and show in textview.
CircleTextView - CircleTextView is an open source Android library that allows developers to easily create an circle TextView with colorful shadow..
TextViewWithImage_Android_Custom_Library - Library which allows you to insert image in between textview without any hassle.
animated-integer-textview-counter-library - An android library to animate an integer value increasing or decreasing..
taggable-android - Android Simple Library for Making Taggable TextView & Taggable EditText.
CustomTextViewAndroid - Simple library for change font of the textview.
readmore-textview - The "ReadMoreTextView" is a custom Android library that simplifies the implementation of "Read More" functionality for TextViews in Android applications. With this library, developers can easily add a "Read More" link to long texts, providing a user-friendly experience for displaying large amounts of content..
RichText - Android library for TextView, EditText, View with border, color, background, radius & more.
SensorandTextMaskView - Android Library for a TextView with movable background based on Sensors.
AnnotationTextAndroid - An Library to show textview which can config annotation in Japanese&Chinese.
CustomWidgets - CustomWidgets is a library use Android UI controls such as TextView, Button, EditText, ChechBox, RadioButton, Switch, ToggleButton, CircleImageView, SeekBar, etc with Custom typefaces..
FontinatorView - a simple library for adding custom fonts to views.
TurriType - Android library for writing text into TextViews gradually.
GradientTextView - Simple android library to apply gradient effect in TextView.
Android_Volley - using volley library to retrieve json data and append to textview in android.
TimerLibraryAndroid - This Library will help you to Update your Textview every Second..
Highlight-KT - Kotlin-optimized version of the Highlight library, a complete and performing library to highlight text snippets (EditText, SpannableString and TextView) using Spannable with Regular Expressions (Regex) for Android..
customview-android - A simple library that helps to create differ type of shape and stroke without creating drawable file. Also collection of complex custom view.
StrangerTextView - This is a simple textView kotlin library for android API 15+. This library can highlight a word or an entire textView..
TextInlineImage-Library - A simple android library to add inline images with text in a TextView..
spanning - A library to simplify your Spannable usage with many handy functions.
Conclusion
These are just a few of the top Android TextView libraries available. Each library offers unique features and customization options to enhance the functionality and appearance of your TextViews. By incorporating these libraries into your projects, you can create more visually appealing and interactive user interfaces. Remember to explore the documentation and examples provided by each library to fully utilize their capabilities.