onContentChanged()是Activity中的一个回调方法
当Activity的布局改动时,即setContentView()或者addContentView()方法执行完毕时就会调用该方法
例如,Activity中各种View的findViewById()方法都可以放到该方法中:
@Override
public void onContentChanged() {
super.onContentChanged();
mGalleryButton = (Button) findViewById( R.id.button1 );
mEditButton = (Button) findViewById( R.id.button2 );
mImage = ( (ImageView) findViewById( R.id.image ) );
mImageContainer = findViewById( R.id.image_container );
}