why not use drawable
JonaNorman opened this issue · 6 comments
JonaNorman commented
why not use drawable
florent37 commented
I use this lib to create dynamics components like sliders, or trees, with drawable it's static, try to create a tree with drawables
JonaNorman commented
I not understand why drawable is static , for example
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
progressDrawable.setColor(Color.Red);//progressDrawable extend shapedrawable
progressDrawable.draw(canvas);
invalidate();
}
florent37 commented
oh I didn't understand the question,
you mean shapedrawable don't works yes ?
JonaNorman commented
I mean why not create custom drawable to create dynamics components ?
florent37 commented
I don't understand.
My lib goal is to simplify usage if canvas
Le 30 nov. 2017 08:37, "HongJun2046" <notifications@github.com> a écrit :
I mean why not create custom drawable to create dynamics components ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFfQXHRCI1o2XcdrhWGI1Nl3Y7pn_tlfks5s7ltCgaJpZM4QwD4E>
.
JonaNorman commented
I understand your meaning, but I think so, drawable is actually the realization of canves.
Android provide GradientDrawable, ShapeDrawable so you can achieve some simple effects.
And, you can custom like TextDrawable, UrlDrawable, this is not better?
By the way,I am sorry for my bad English, and this is just my understanding. You Can Close this issuse.