摘要:
先看一个例子: private static Drawable sBackground; @Override protectedvoid onCreate(Bundle state){ super.onCreate(state); TextView label =newTextView(this); label.setText("Leaks are bad"); if(sBackground ==null){ sBackground = getDrawable(R.drawable.large_bitmap); } label.s... 阅读全文