All Projects → a-tolstykh → Textview Rich Drawable

a-tolstykh / Textview Rich Drawable

Licence: apache-2.0
Android TextView with rich support of compound drawables

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Textview Rich Drawable

Vectorcloud
A web interface for Anki Vector
Stars: ✭ 116 (-14.71%)
Mutual labels:  vector
Svg.skia
An SVG rendering library.
Stars: ✭ 122 (-10.29%)
Mutual labels:  vector
Tytext
text asynchronous rendering by TextKit for iOS
Stars: ✭ 127 (-6.62%)
Mutual labels:  textview
Rotatingtext
A periodic text updating library
Stars: ✭ 1,558 (+1045.59%)
Mutual labels:  textview
Numphp
Mathematical PHP library for scientific computing
Stars: ✭ 120 (-11.76%)
Mutual labels:  vector
Drawabletextview
自定义控件 :drawable 跟随TextView居中 The drawable follows the text centered
Stars: ✭ 124 (-8.82%)
Mutual labels:  textview
Szmentionsswift
Library to help handle mentions
Stars: ✭ 109 (-19.85%)
Mutual labels:  textview
React Designer
It's not art
Stars: ✭ 1,762 (+1195.59%)
Mutual labels:  vector
U.movin
Unity library for rendering After Effects shape animations
Stars: ✭ 122 (-10.29%)
Mutual labels:  vector
Xrichtext
一个Android富文本类库,支持图文混排,支持编辑和预览,支持插入和删除图片。
Stars: ✭ 1,639 (+1105.15%)
Mutual labels:  textview
Vectormaster
Dynamic control over vector drawables!
Stars: ✭ 1,540 (+1032.35%)
Mutual labels:  vector
Android Textview Linkbuilder
Insanely easy way to define clickable links within a TextView.
Stars: ✭ 1,549 (+1038.97%)
Mutual labels:  textview
Readmoretextview
A Custom TextView with trim text
Stars: ✭ 1,606 (+1080.88%)
Mutual labels:  textview
Android Animated Icons
How to improve the user experience using animated icons with vector drawables on Android
Stars: ✭ 117 (-13.97%)
Mutual labels:  vector
Mapchete
Tile-based geodata processing using rasterio & Fiona
Stars: ✭ 129 (-5.15%)
Mutual labels:  vector
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 (+1069.85%)
Mutual labels:  textview
Typewriterview
Android library for typewriter like effects
Stars: ✭ 124 (-8.82%)
Mutual labels:  textview
Collapsibletextview
show or hide part of text only in a TextView
Stars: ✭ 135 (-0.74%)
Mutual labels:  textview
Fading Text View
A TextView that changes its content automatically every few seconds
Stars: ✭ 1,691 (+1143.38%)
Mutual labels:  textview
Containers
This library provides various containers. Each container has utility functions to manipulate the data it holds. This is an abstraction as to not have to manually manage and reallocate memory.
Stars: ✭ 125 (-8.09%)
Mutual labels:  vector

TextViewRichDrawable Android Arsenal

This is a tiny library which empowers TextView's (and its inheritors) compound drawables with size specifying, vector support and tinting. Currently empowers next Android views with RichDrawable support:

  • Button -> ButtonRichDrawable
  • CheckBox -> CheckBoxRichDrawable
  • EditText -> EditTextRichDrawable
  • RadioButton -> RadioButtonRichDrawable
  • TextView -> TextViewRichDrawable

This library is just an extension of Android's TextView.

Usage

  • Enable vector Drawable support for pre Lollipop devices (more details):
 android {
   defaultConfig {
     vectorDrawables.useSupportLibrary = true
    }
 }
  • In XML layout:
    <com.tolstykh.textviewrichdrawable.TextViewRichDrawable
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Some text"
        app:compoundDrawableHeight="24dp"
        app:compoundDrawableWidth="24dp"
        app:drawableTopVector="@drawable/some_vector_drawble"
        app:drawableEndVector="@drawable/another_vector_drawable"
        app:drawableTint="@color/colorAccent" />
  • All customizable attributes:
    <declare-styleable name="TextViewRichDrawable">
        <attr name="compoundDrawableWidth" format="dimension"/>
        <attr name="compoundDrawableHeight" format="dimension"/>
        <attr name="drawableStartVector" format="reference" />
        <attr name="drawableTopVector" format="reference" />
        <attr name="drawableEndVector" format="reference" />
        <attr name="drawableBottomVector" format="reference" />
        <attr name="drawableTint" format="reference" />
    </declare-styleable>

Example

TextView-rich-drawable

Download

repositories {
    jcenter()
}
compile 'com.tolstykh.textviewrichdrawable:textview-rich-drawable:0.3.2'

License

Copyright 2016 Oleksandr Tolstykh

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].