Inherits from TextView, can set vertical and horizontal label to TextView // 继承 TextView,能够在 TextView 上下左右固定设置文本的 View
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper Initial commit Oct 26, 2015
library Update version name to v0.8: support android:gravity attr. Nov 16, 2015
sample
.gitignore Initial commit Oct 26, 2015
README.md
build.gradle Initial commit Oct 26, 2015
demo.png Update to v0.618 and change demo.png. Oct 27, 2015
gradle.properties
gradlew
gradlew.bat Initial commit Oct 26, 2015
settings.gradle

README.md

LabelView

Inherits from TextView, can set vertical and horizontal label to TextView

继承 TextView,能够在 TextView 上下左右固定设置文本的 View

以前,我们如果要写出 我的id: drakeet 这样的条目内容,需要使用两个 TextView 组合,或者一个 TextView 然后每次 setText 的时候,setText ("我的id: " + user.id), sad...

现在呢,使用 LabelView 吧!

TODO

  • 实现上下左右 text 的样式定义
  • 实现上下左右 text 的 margin or padding

Usage

compile 'me.drakeet.labelview:labelview:0.8'

License

The MIT License (MIT)

Copyright (c) 2015 drakeet

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.