Esempio n. 1
0
  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());
    }
  }
Esempio n. 2
0
 public int getLayoutWidth() {
   return mLayoutParams.getWidth();
 }
Esempio n. 3
0
 public int getLayoutHeight() {
   return mLayoutParams.getHeight();
 }
Esempio n. 4
0
 public int getLayoutType() {
   return mLayoutParams.getType();
 }