private void initLayoutParameters(Configuration configuration) { mLayoutParams = getLayoutParameters( configuration.orientation == Configuration.ORIENTATION_PORTRAIT ? LayoutParameters.HVGA_PORTRAIT : LayoutParameters.HVGA_LANDSCAPE); if (LOCAL_LOGV) { Log.v( TAG, "LayoutParameters: " + mLayoutParams.getTypeDescription() + ": " + mLayoutParams.getWidth() + "x" + mLayoutParams.getHeight()); } }
public int getLayoutWidth() { return mLayoutParams.getWidth(); }