Revision 4235de9b
Added by Leszek Koltunski almost 6 years ago
| src/main/java/org/distorted/magic/RubikDialogScores.java | ||
|---|---|---|
| 30 | 30 |
import android.support.design.widget.TabLayout; |
| 31 | 31 |
import android.view.LayoutInflater; |
| 32 | 32 |
import android.view.View; |
| 33 |
import android.view.Window; |
|
| 34 |
import android.view.WindowManager; |
|
| 33 | 35 |
import android.widget.ImageView; |
| 34 | 36 |
import android.widget.TextView; |
| 35 | 37 |
|
| ... | ... | |
| 39 | 41 |
{
|
| 40 | 42 |
RubikDialogScoresPagerAdapter mPagerAdapter; |
| 41 | 43 |
|
| 44 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 45 |
|
|
| 46 |
@Override |
|
| 47 |
public void onStart() |
|
| 48 |
{
|
|
| 49 |
super.onStart(); |
|
| 50 |
|
|
| 51 |
Window window = getDialog().getWindow(); |
|
| 52 |
window.setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL, |
|
| 53 |
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL); |
|
| 54 |
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); |
|
| 55 |
} |
|
| 56 |
|
|
| 42 | 57 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 43 | 58 |
|
| 44 | 59 |
@NonNull |
| ... | ... | |
| 50 | 65 |
|
| 51 | 66 |
LayoutInflater layoutInflater = act.getLayoutInflater(); |
| 52 | 67 |
TextView tv = (TextView) layoutInflater.inflate(R.layout.dialog_title, null); |
| 53 |
tv.setText(R.string.scores_title);
|
|
| 68 |
tv.setText(R.string.scores); |
|
| 54 | 69 |
builder.setCustomTitle(tv); |
| 55 | 70 |
|
| 56 | 71 |
builder.setCancelable(true); |
Also available in: Unified diff
Major rearrangement of the UI.