All Projects → Amterson → Alginproject

Amterson / Alginproject

Licence: mit
模仿微信读书左右对齐的文字效果

Programming Languages

java
68154 projects - #9 most used programming language
gravity
16 projects

Projects that are alternatives of or similar to Alginproject

Xrichtext
一个Android富文本类库,支持图文混排,支持编辑和预览,支持插入和删除图片。
Stars: ✭ 1,639 (+552.99%)
Mutual labels:  textview
Vectorcompattextview
One VectorCompatTextView suits for hundreds of CompoundDrawable style. 一个库,满足CompoundDrawable的百变风格。
Stars: ✭ 147 (-41.43%)
Mutual labels:  textview
Html Textview
TextView to display simple HTML
Stars: ✭ 2,445 (+874.1%)
Mutual labels:  textview
Fading Text View
A TextView that changes its content automatically every few seconds
Stars: ✭ 1,691 (+573.71%)
Mutual labels:  textview
Fstextview
继承于UITextView的自定义TextView, 带placeholder和可限制最大输入字符数, 已适配横竖屏切换.
Stars: ✭ 140 (-44.22%)
Mutual labels:  textview
Android Lib Verticalmarqueetextview
A custom TextView with vertical marquee effect
Stars: ✭ 163 (-35.06%)
Mutual labels:  textview
Drawabletextview
自定义控件 :drawable 跟随TextView居中 The drawable follows the text centered
Stars: ✭ 124 (-50.6%)
Mutual labels:  textview
Stringformatter
Simple Text Formetter (Credit Card Number, Phone Number, Serial Number etc.) Can be used in all text inputs according to the format pattern. If desired, large minor character restrictions can be made in the format pattern.
Stars: ✭ 231 (-7.97%)
Mutual labels:  textview
Toggleedittextview
Easily switch between EditText and TextView seamlessly.
Stars: ✭ 146 (-41.83%)
Mutual labels:  textview
Rskplaceholdertextview
A light-weight UITextView subclass that adds support for placeholder.
Stars: ✭ 192 (-23.51%)
Mutual labels:  textview
Collapsibletextview
show or hide part of text only in a TextView
Stars: ✭ 135 (-46.22%)
Mutual labels:  textview
Sharpview
安卓带有尖角气泡的控件(TextView,ImageView,EditText,Layout),支持渐变色,圆角等自定义属性
Stars: ✭ 137 (-45.42%)
Mutual labels:  textview
Supertextview
🎀 SuperTextView for Android 是一个在TextView的基础上扩展了几种动画效果的控件。
Stars: ✭ 165 (-34.26%)
Mutual labels:  textview
Tytext
text asynchronous rendering by TextKit for iOS
Stars: ✭ 127 (-49.4%)
Mutual labels:  textview
Blitz
Android Library: Set self-updating string with relative time in TextView (e.g. 5 minutes ago)
Stars: ✭ 217 (-13.55%)
Mutual labels:  textview
Readmoretextview
A Custom TextView with trim text
Stars: ✭ 1,606 (+539.84%)
Mutual labels:  textview
Cdmarkdownkit
An extensive Swift framework providing simple and customizable markdown parsing.
Stars: ✭ 158 (-37.05%)
Mutual labels:  textview
Compoundicontextview
An android library that is able to set a vector drawable at text view pre-Lollipop.
Stars: ✭ 241 (-3.98%)
Mutual labels:  textview
Superxml
android布局能力增加,轻松实现圆角、边框、虚线、属性覆盖等功能。完全无侵入
Stars: ✭ 221 (-11.95%)
Mutual labels:  textview
Slantedtextview
Android slanted TextView.
Stars: ✭ 2,197 (+775.3%)
Mutual labels:  textview

1.非中文单词不够一行会自动截断,用符号“-”连接起来;

2.适配布局的方向,使用原生TextView的属性:android:gravity=""和android:textAlignment="",gravity的优先级较高,如果同时设置这两个属性则以textAlignment的属性为准;

<com.example.testdemo1.XQJustifyTextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:textSize="16sp"
        android:gravity="start"
        android:textAlignment="textStart"/>

3.英文情况下使用元音字母进行截断,如果没有找到元音字母则使用默认规则截断;

4.依赖Library

在主项目app的build.gradle中依赖

dependencies {
    ...
    implementation 'com.text:alginlib:1.0.1'
}
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].