0
public class BouncingBallActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
View bouncingBallView = new BouncingBallView(this);
super.onCreate(savedInstanceState);
setContentView(bouncingBallView);
}
}
發佈您的logcat錯誤。 – rajeshwaran 2013-03-25 11:41:53
後BouncingBallView類它必須擴展視圖 – SelvaMariappan 2013-03-25 11:44:29