Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

谢谢你的工作,但是有两个属性 #3

Open
abings opened this issue Nov 22, 2017 · 10 comments
Open

谢谢你的工作,但是有两个属性 #3

abings opened this issue Nov 22, 2017 · 10 comments

Comments

@abings
Copy link

abings commented Nov 22, 2017

谢谢你的工作,但是有两个常用的属性请增加一下,一个是 drawableTint,一个 drawable与text的距离,这两个一般比较常用。加上就更节省时间了。

@qiushui95
Copy link

距离不是有个drawablepadding?

@luzheng611
Copy link

对,感觉加上drawablePadding就完美了

@RuffianZhong
Copy link
Owner

RTextView继承TextView的,TextView本身自带drawablePadding属性,直接用就好啦

@kokobebekoko
Copy link

RTextView继承TextView的,TextView本身自带drawablePadding属性,直接用就好啦

我想在RTextView使用渐变的背景该怎么使用?

@RuffianZhong
Copy link
Owner

@kokobebekoko
RTextView 没有渐变的功能,新功能都在新项目 RWidgetHelper

@kokobebekoko
Copy link

RWidgetHelper

RWidgetHelper有渐变功能吗

@RuffianZhong
Copy link
Owner

@kokobebekoko 有的

@kokobebekoko
Copy link

@kokobebekoko 有的

我看了下RWidgetHelper的RTextView 并没有加渐变相关功能啊

@RuffianZhong
Copy link
Owner

@kokobebekoko
你看看 readMe 后面一点,有说明,渐变适用于所有View(除了ImageView)
用法很简单:
background_xxx:设置1个值表示普通背景色,2个以上就自动呈现渐变效果。仔细看看下文档

@RuffianZhong
Copy link
Owner

@abings
久等了,在新项目 RWidgetHelper 1.0.5版本增加了
图片和文本一起居中功能 然后设置drawablePadding 可以达到自己设置图标和文本之间的任意间距

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants