woxingxiao / Vectorcompattextview
Licence: mit
One VectorCompatTextView suits for hundreds of CompoundDrawable style. 一个库,满足CompoundDrawable的百变风格。
Stars: ✭ 147
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Vectorcompattextview
Nextgrowingtextview
📝 The next in the generations of 'growing textviews' optimized for iOS 8 and above.
Stars: ✭ 1,540 (+947.62%)
Mutual labels: textview
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (-15.65%)
Mutual labels: textview
Collapsibletextview
show or hide part of text only in a TextView
Stars: ✭ 135 (-8.16%)
Mutual labels: textview
Pincodeinputview
A input text view for entering pin code.
Stars: ✭ 108 (-26.53%)
Mutual labels: textview
Fstextview
继承于UITextView的自定义TextView, 带placeholder和可限制最大输入字符数, 已适配横竖屏切换.
Stars: ✭ 140 (-4.76%)
Mutual labels: textview
Android Textview Linkbuilder
Insanely easy way to define clickable links within a TextView.
Stars: ✭ 1,549 (+953.74%)
Mutual labels: textview
Fading Text View
A TextView that changes its content automatically every few seconds
Stars: ✭ 1,691 (+1050.34%)
Mutual labels: textview
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (-25.17%)
Mutual labels: textview
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue.
If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+982.31%)
Mutual labels: textview
Textview Rich Drawable
Android TextView with rich support of compound drawables
Stars: ✭ 136 (-7.48%)
Mutual labels: textview
Materialbadgetextview
As the name describes, this is an Android library that you can use to show new messages badge and new features badge.
Stars: ✭ 1,331 (+805.44%)
Mutual labels: textview
Drawabletextview
自定义控件 :drawable 跟随TextView居中 The drawable follows the text centered
Stars: ✭ 124 (-15.65%)
Mutual labels: textview
Toggleedittextview
Easily switch between EditText and TextView seamlessly.
Stars: ✭ 146 (-0.68%)
Mutual labels: textview
Sharpview
安卓带有尖角气泡的控件(TextView,ImageView,EditText,Layout),支持渐变色,圆角等自定义属性
Stars: ✭ 137 (-6.8%)
Mutual labels: textview
VectorCompatTextView
With this multifunctional TextView, the VectorDrawable resources can be set as CompoundDrawables, furthermore, the majority of scenarios to manipulate CompoundDrawables have been supported, such as checked state, color tinting/setting, custom size setting, visibility, RTL, etc. AndroidX version is available.
这个炒鸡强大的库可以让你轻松将VectorDrawable资源设置为CompoundDrawable,并且支持大多数操控CompoundDrawable的情景,如:checked状态,颜色设置或着色,自定义宽高,隐藏或显示,RTL布局等等(当然常规资源如png/jpg,Drawable的子类等更不在话下)。有AndroidX版本。
Screenshot
Download
root project:build.gradle
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
app:build.gradle
android {
...
defaultConfig {
...
vectorDrawables.useSupportLibrary = true // essential
}
...
dependencies {
// Support
// e.g. implementation 'com.github.woxingxiao:VectorCompatTextView:2.7'
implementation 'com.github.woxingxiao:VectorCompatTextView:${LATEST_VERSION}'
// AndroidX
// e.g. implementation 'com.github.woxingxiao:VectorCompatTextView:2.7-androidx'
implementation 'com.github.woxingxiao:VectorCompatTextView:${LATEST_VERSION}-androidx'
}
Usage
<com.xw.repo.VectorCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GitHub"
app:drawableLeftCompat="@drawable/svg_ic_github"/>
<com.xw.repo.VectorCompatTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Next"
app:drawableRightCompat="@drawable/svg_ic_arrow_right"
app:tintDrawableInTextColor="true"/>
<com.xw.repo.VectorCompatTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="ON"
app:drawableCompatColor="#f44336"
app:drawableBottomCompat="@drawable/svg_ic_line"/>
<com.xw.repo.VectorCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GitHub"
app:drawableAdjustTextWidth="true"
app:drawableTopCompat="@drawable/svg_ic_github"/>
<com.xw.repo.VectorCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GitHub"
app:drawableWidth="24dp"
app:drawableHeight="32dp"
app:drawableLeftCompat="@mipmap/ic_launcher"/>
<com.xw.repo.VectorCompatTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="评论"
app:drawableAdjustTextHeight="true" <!-- text bounds -->
app:drawableLeftCompat="@drawable/shape_rect_solid_red"
app:drawableWidth="4dp"/>
<com.xw.repo.VectorCompatTextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:checked="true"
android:gravity="center"
android:text="SELECTED TAB"
android:textColor="@drawable/selector_text_color_tab"
app:drawableAdjustViewWidth="true" <!-- view bounds -->
app:drawableBottomCompat="@drawable/selector_drawable_tab"
app:drawableHeight="2dp"/>
Check the Demo for complete usage.
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].