Project

General

Profile

« Previous | Next » 

Revision 4429d6c8

Added by Leszek Koltunski over 2 years ago

Downloading updates: dialog progress.

View differences:

src/main/java/org/distorted/dialogs/RubikDialogUpdates.java
85 85
    final float titleSize= w*RubikActivity.MENU_BIG_TEXT_SIZE;
86 86
    final float okSize   = w*RubikActivity.DIALOG_BUTTON_SIZE;
87 87
    mMargin              = (int)(w*RubikActivity.MEDIUM_MARGIN);
88
    mSize                = (int)(h*0.19f);
88
    mSize                = (int)(h*0.14f);
89 89
    mFontSize            = (int)(h*0.02f);
90 90

  
91 91
    TextView title = (TextView) inflater.inflate(R.layout.dialog_title, null);
......
173 173
      }
174 174
    else
175 175
      {
176
      //mScroll.setVerticalScrollBarEnabled(false);
177
      //mText.setText(act.getString(R.string.no_updates));
178

  
179
      int imagH = (int)(mSize*0.52f);
180
      int textH = (int)(mSize*0.20f);
181
      int buttH = (int)(mSize*0.35f);
176
      int imagH = (int)(mSize*1.00f);
177
      int textH = (int)(mSize*0.23f);
178
      int buttH = (int)(mSize*0.49f);
182 179

  
183 180
      LinearLayout.LayoutParams pI = new LinearLayout.LayoutParams( imagH,imagH );
184
      pI.setMargins(mMargin/2, mMargin/2, mMargin/2, mMargin/2 );
185 181
      LinearLayout.LayoutParams pV = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, mSize );
186 182
      pV.setMargins(mMargin, mMargin, mMargin, 0);
187 183
      LinearLayout.LayoutParams pT = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, textH );

Also available in: Unified diff