All Projects → nyakokishi → Justifytextview

nyakokishi / Justifytextview

Deprecated

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Justifytextview

Inputkit
📝InputKit, an Elegant Kit to limits your input text, inspired by BlocksKit, written in both Objective-C & ⚡️Swift.
Stars: ✭ 420 (+1580%)
Mutual labels:  textview
Selectabletextview
A text view that supports selection and expansion
Stars: ✭ 626 (+2404%)
Mutual labels:  textview
Rxmarkdown
📠Markdown for Android, supports TextView && EditText (Live Preview), supports code high light.
Stars: ✭ 714 (+2756%)
Mutual labels:  textview
Flipview
Flipping views like Gmail & beyond
Stars: ✭ 477 (+1808%)
Mutual labels:  textview
Textviewexpandableanimation
Expandable TextView With Smooth Transition Animation
Stars: ✭ 537 (+2048%)
Mutual labels:  textview
Gsyricktext
类似微博的emoji表情、@人、话题等的EdiText,优化了编辑框中的光标点击和删除处理。TextView支持emoji表情、话题、链接、电话和@某人特殊显示的文本。
Stars: ✭ 651 (+2504%)
Mutual labels:  textview
Countanimationtextview
A tiny Android library makes very easier count animation of TextView.
Stars: ✭ 392 (+1468%)
Mutual labels:  textview
Roundprogresstextview
TextView with Round Pogress
Stars: ✭ 18 (-28%)
Mutual labels:  textview
Htextview
Animation effects to text, not really textview
Stars: ✭ 5,309 (+21136%)
Mutual labels:  textview
Better Link Movement Method
Attempts to improve how clickable links are detected, highlighted and handled in TextView
Stars: ✭ 684 (+2636%)
Mutual labels:  textview
Htmlbuilder
Build valid HTML for Android TextView
Stars: ✭ 506 (+1924%)
Mutual labels:  textview
Simplifyspan
A easy-to-use and powerful Spannable library
Stars: ✭ 522 (+1988%)
Mutual labels:  textview
Android Ago
An Android TextView that always displays an auto refreshing relative time span with respect to a reference time
Stars: ✭ 669 (+2576%)
Mutual labels:  textview
Stacklabel
🔥空祖家的堆叠标签(以下碎念:一开始起名字“StackLabel”没想太多结果被人吐槽Stack是整齐堆叠的意思...........好吧这是我的锅不过现在要改也来不及了,好用就行了...吧?
Stars: ✭ 471 (+1784%)
Mutual labels:  textview
Android Robototextview
Implementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab fonts.
Stars: ✭ 791 (+3064%)
Mutual labels:  textview
Text Decorator
Decorate your TextView easily
Stars: ✭ 402 (+1508%)
Mutual labels:  textview
Expandabletextview
Android TextView that can expand and collapse.
Stars: ✭ 632 (+2428%)
Mutual labels:  textview
Android Justifiedtextview
android justified textview
Stars: ✭ 917 (+3568%)
Mutual labels:  textview
Rskgrowingtextview
A light-weight UITextView subclass that automatically grows and shrinks.
Stars: ✭ 820 (+3180%)
Mutual labels:  textview
Wmzdialog
功能最多样式最多的弹窗,支持普通/微信底部/日期/地区/日历/选择/编辑/分享/菜单/自定义弹窗等,支持多种动画,链式编程调用(Pop-up windows with the most functions and styles, support normal/WeChat bottom/date/region/calendar/select/edit/share/menu/custom pop-up windows, etc., support multiple animations, chain programming calls)
Stars: ✭ 673 (+2592%)
Mutual labels:  textview

JustifyTextView

这个项目是初学开发时写的,当时因为 TextView 行尾出现参差不齐的情况纠结了好一阵,所以才想到去自定义一个 TextView

近日看到这两篇文章,才想起之前写的这个

微信团队披露:微信界面卡死超级bug“15。。。。”的来龙去脉

能不能先把脑袋理清楚再自吹自擂——评《微信界面卡死超级bug“15。。。。”的来龙去脉》一文

使用

gradle

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
dependencies {
    compile 'com.github.nyakokishi:JustifyTextView:1.0'
}

xml

<io.github.leibnik.justifytextview.JustifyTextView
        xmlns:app="http://schemas.android.com/apk/res-auto"
        app:line_space="3px"
        app:character_space="0px"
        app:align_chars="true"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/test"/>

app:line_space:配置行间距

app:character_space:配置字符间距

app:align_chars:是否完全对齐字符,默认完全对齐,仅在文本包含 CJK 字符时有效

效果

下图为居中‘硬’对齐效果23333:

下图为居中‘软’对齐效果hhhhh:

License

The MIT License (MIT)

Copyright (c) 2016 leibnik

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
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].