Project

General

Profile

« Previous | Next » 

Revision 788701a7

Added by Leszek Koltunski almost 2 years ago

More fixes for UI in case of extreme screen (w/h) ratios ( from 1.0 to 2.0 ).

View differences:

src/main/java/org/distorted/bandaged/BandagedCreatorObjectView.java
88 88
  static LinearLayout.LayoutParams createPaneParams(int height, boolean leftmost)
89 89
    {
90 90
    int margin = (int)(height*MARGIN);
91
    int length = (int)(height*BandagedCreatorActivity.RATIO_SCROLL*0.66f);
91
    int length = (int)(height*BandagedCreatorActivity.RATIO_SCROLL*0.65f);
92 92

  
93 93
    LinearLayout.LayoutParams params = new LinearLayout.LayoutParams( length, LinearLayout.LayoutParams.MATCH_PARENT);
94 94
    params.bottomMargin = margin;
src/main/java/org/distorted/dialogs/RubikDialogUpdates.java
79 79
    int h= displaymetrics.heightPixels;
80 80
    final float titleSize= w*RubikActivity.BIG_TEXT_SIZE;
81 81
    final float okSize   = w*RubikActivity.DIALOG_BUTTON_SIZE;
82
    mMargin   = (int)(w*RubikActivity.MEDIUM_MARGIN);
82
    mMargin   = (int)(h*0.01f);
83 83
    mSize     = (int)(h*0.14f);
84 84
    mFontSize = (int)(h*0.02f);
85 85
    mPadding  = (int)(h*0.01f);
src/main/java/org/distorted/main/RubikActivity.java
69 69
    public static final float PADDING             = 0.01f;
70 70
    public static final float SMALL_MARGIN        = 0.004f;
71 71
    public static final float MEDIUM_MARGIN       = 0.015f;
72
    public static final float LARGE_MARGIN        = 0.025f;
73 72
    public static final float BUTTON_TEXT_SIZE    = 0.05f;
74 73
    public static final float TITLE_TEXT_SIZE     = 0.06f;
75 74
    public static final float SOLVER_BMP_H_SIZE   = 0.11f;

Also available in: Unified diff