Project

General

Profile

« Previous | Next » 

Revision 4279106d

Added by Leszek Koltunski almost 2 years ago

Further improvements for the UI.

View differences:

src/main/java/org/distorted/screens/RubikScreenPlay.java
352 352
    mMenuPopup.setFocusable(true);
353 353
    int padding = (int)(height*MENU_MARGIN);
354 354
    int numButtons = USE_IAP ? 7 : 6;
355
    mMenuLayoutWidth = (int)(width*MENU_WIDTH);
356
    mLevelWidth = (mMenuLayoutWidth-4*padding)/3;
357 355
    mLevelHeight = (int)(height*LEVEL_BUTTON_HEIGHT);
358 356
    mMenuLayoutHeight= padding + numButtons*(mMenuButtonHeight+padding) + mLevelHeight/3 + 3*(mLevelHeight+padding);
357
    mMenuLayoutWidth = Math.min((int)(width*MENU_WIDTH),mMenuLayoutHeight/2);
358
    mLevelWidth = (mMenuLayoutWidth-4*padding)/3;
359 359

  
360 360
    layout.setPadding(padding,0,padding,0);
361 361

  

Also available in: Unified diff