Revision b0ed406c
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/states/RubikStatePlay.java | ||
---|---|---|
24 | 24 |
import android.graphics.drawable.BitmapDrawable; |
25 | 25 |
import android.os.Bundle; |
26 | 26 |
import android.util.TypedValue; |
27 |
import android.view.Gravity; |
|
27 | 28 |
import android.view.LayoutInflater; |
28 | 29 |
import android.view.View; |
29 | 30 |
import android.widget.Button; |
... | ... | |
211 | 212 |
View popupView = mMenuPopup.getContentView(); |
212 | 213 |
popupView.setSystemUiVisibility(RubikActivity.FLAGS); |
213 | 214 |
|
214 |
mMenuPopup.showAsDropDown(view, (int)(-width/12), margin); |
|
215 |
mMenuPopup.showAsDropDown(view, (int)(-width/12), margin, Gravity.CENTER);
|
|
215 | 216 |
mMenuPopup.update(view, mMenuLayoutWidth, mMenuLayoutHeight); |
216 | 217 |
mMenuPopup.setFocusable(true); |
217 | 218 |
mMenuPopup.update(); |
Also available in: Unified diff
Correct the layout of the main MenuPopup - it was displayed incorrectly on right-to-left locales e.g. Arabic.