comexampleasusviewpagerindicator;
androidcontentContext;
;
;
;
;
;
androidutilAttributeSet;
;
;
{
????Paint();
????Path();
????;??;;;;ViewpagerIndicator(Context?)?{
????????(,);
????}
????ViewpagerIndicator(Context?,?AttributeSet?)?{
????????(,?);
????????setAntiAlias();
????????setColor(());
????????setStyle(PaintStyle);
????????setPathEffect(CornerPathEffect());
????}
????onSizechanged(,,,){?onSizeChanged(,,,);
????????()();?;??initTriangle();
????}
????initTriangle()
????{
????????;moveTo(,);
????????lineTo(,);
????????lineTo(,);
????????close();
????}
????dispatchDraw()?{
????????save();
????????translate(,getHeight());
????????drawPath(,);
????????restore();
????????dispatchDraw();
????}
}
安卓繪制指示器空間標(biāo)志,無(wú)效果。好郁悶啊,就想畫(huà)個(gè)三角形,怎么這么難
codingBen2017
2016-05-25 17:01:15