2011-09-15 41 views

回答

0

我解決問題重寫繪製函數。

public class TutorialLinearLayout extends LinearLayout { 

    public TutorialLinearLayout(Context context) { 
    super(context); 
    } 

    @Override 
    public void draw(Canvas canvas) { 
    super.draw(canvas); 
    Bitmap tutorial = BitmapFactory.decodeResource(getResources(), R.drawable.tutorial); 
    canvas.drawBitmap(tutorial, 0, 0, null); 
    tutorial.recycle(); 
    } 
}