why not use drawable
JonaNorman opened this issue · comments
I use this lib to create dynamics components like sliders, or trees, with drawable it's static, try to create a tree with drawables
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();
}
oh I didn't understand the question,
you mean shapedrawable don't works yes ?
I mean why not create custom drawable to create dynamics components ?
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.