Revision b8b38548
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/magic/RubikSettings.java | ||
---|---|---|
23 | 23 |
import android.os.Bundle; |
24 | 24 |
import android.support.annotation.NonNull; |
25 | 25 |
import android.support.v4.app.FragmentActivity; |
26 |
import android.support.v4.content.ContextCompat; |
|
26 | 27 |
import android.support.v7.app.AlertDialog; |
27 | 28 |
import android.support.v7.app.AppCompatDialogFragment; |
28 | 29 |
import android.util.DisplayMetrics; |
... | ... | |
69 | 70 |
///// OUTER LAYOUT /////////////////////////////////////////////////////////////////// |
70 | 71 |
|
71 | 72 |
int margin = (int)(scale*10 + 0.5f); |
72 |
int color = act.getResources().getColor(R.color.grey);
|
|
73 |
int color = ContextCompat.getColor(act, R.color.grey);
|
|
73 | 74 |
LinearLayout outerLayout = new LinearLayout(act); |
74 | 75 |
LinearLayout.LayoutParams outerLayoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.MATCH_PARENT, 0.5f); |
75 | 76 |
outerLayoutParams.topMargin = margin; |
Also available in: Unified diff
Downloading High Scores