예제 #1
0
  /** apply settings set by the user using Preferences */
  @Override
  public void applyPreferenceSettings() {
    applyFontSize();

    changeBackgroundColour();

    ScreenSettings.setContentViewHeightPx(getHeight());
  }
예제 #2
0
 @Override
 protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
   super.onMeasure(widthMeasureSpec, heightMeasureSpec);
   // update the height in ScreenSettings
   ScreenSettings.setContentViewHeightPx(getMeasuredHeight());
 }