-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/lygttpod/SuperTextView
- Loading branch information
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# SuperTextView | ||
一个功能强大的TextView,可以满足日常大部分布局方式,开发者可已自行组合属性配置出属于自己风格的样式! | ||
一个功能强大的TextView,可以满足日常大部分布局方式,开发者可已自行组合属性配置出属于自己风格的样式!如果觉得对你有用的话,点一下右上的星星赞一下吧! | ||
|
||
###因为这是首次编写的开源项目,经验并不是很足,使用过程中大家遇到什么问题欢迎在Issues或者发送邮件提出来,这边会尽快修改完善这个库,谢谢大家的支持! | ||
|
||
#效果图 | ||
<div align="center"> | ||
|
@@ -14,10 +16,20 @@ | |
</div> | ||
#基本使用 | ||
###1.添加Gradle依赖 | ||
先在 build.gradle 的 repositories 添加: | ||
|
||
allprojects { | ||
repositories { | ||
... | ||
maven { url "https://jitpack.io" } | ||
} | ||
} | ||
|
||
然后在dependencies添加: | ||
|
||
dependencies { | ||
... | ||
compile 'com.allen.supertextview:supertextview:1.0.2' | ||
compile 'com.allen.supertextview:supertextview:1.0.3' | ||
} | ||
|
||
###2.布局中如何使用 | ||
|
@@ -168,16 +180,27 @@ | |
|
||
</declare-styleable> | ||
|
||
###6.使用第三方库(Picasso或者Glide)加载网络图片 | ||
Picasso.with(this) | ||
.load(url) | ||
.placeholder(R.drawable.head_default) | ||
.into((ImageView) superTextView.getView(SuperTextView.leftImageViewId)); | ||
|
||
#更新日志 | ||
### V1.0.3 | ||
* 新增左右两边图片支持常用三方库加载网络图片 | ||
|
||
### V1.0.2 | ||
* 修复文字内容过多,超过1行的处理,导致两边的文字会引起重叠的bug | ||
|
||
### V1.0.1 | ||
* 修复编译版本不同导致无法正常使用的bug | ||
|
||
### V1.0.0 | ||
* 功能强大的TextView | ||
|
||
#意见反馈 | ||
如果遇到问题或者好的建议,请反馈到我的邮箱:[email protected] 或者[email protected] | ||
如果遇到问题或者好的建议,请反馈到我的邮箱:[email protected] 或者[email protected] 或者QQ:460605805 | ||
|
||
如果觉得对你有用的话,点一下右上的星星赞一下吧! | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.allen.supertextviewlibrary"> | ||
|
||
<application android:allowBackup="true" android:label="@string/app_name" | ||
android:supportsRtl="true"> | ||
|
||
</application> | ||
|
||
</manifest> | ||
package="com.allen.supertextviewlibrary"/> |