1只
2。
,,,,将xxx.setAnimation (showAnimation);, showAnimation.startNow ();
,,改成,xxx.startAnimation (showAnimation);
4。初始化NinePatch图:
,,,,位图的位图=BitmapFactory.decodeResource (getresource (), R.drawable.highlight);
, np=new NinePatch(位图,bitmap.getNinePatchChunk (), null);
,,画NinePatch图
,,,,位图newBitmap=位图。createBitmap (bmpWidth bmpHeight Config.ARGB_8888);
帆布画布=新画布(newBitmap);
RectF rect2=new RectF (0, 0, bmpWidth params.height);
np。画(画布,rect2);