2013-07-29 105 views

回答

1

如果您是在活動中,後的onResume,如果你是在查看自己的方法後, 「onLayout」 叫...

protected void onLayout(boolean changed, int l, int t, int r, int b) { 
    // TODO Auto-generated method stub 
    super.onLayout(changed, l, t, r, b); 
} 

OR

@Override 
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 
    // TODO Auto-generated method stub 
    super.onMeasure(widthMeasureSpec, heightMeasureSpec); 
} 

商祺!

相關問題