|
17 | 17 | import android.content.IntentFilter;
|
18 | 18 | import android.content.pm.PackageInfo;
|
19 | 19 | import android.content.pm.PackageManager;
|
| 20 | +import android.graphics.Color; |
| 21 | +import android.graphics.Typeface; |
20 | 22 | import android.hardware.SensorManager;
|
21 | 23 | import android.util.Pair;
|
| 24 | +import android.view.Gravity; |
22 | 25 | import android.view.View;
|
23 | 26 | import android.widget.EditText;
|
| 27 | +import android.widget.TextView; |
24 | 28 | import android.widget.Toast;
|
25 | 29 | import androidx.annotation.Nullable;
|
26 | 30 | import androidx.annotation.UiThread;
|
@@ -551,8 +555,18 @@ public void onOptionSelected() {
|
551 | 555 | "Unable to launch dev options menu because react activity " + "isn't available");
|
552 | 556 | return;
|
553 | 557 | }
|
| 558 | + |
| 559 | + final TextView textView = new TextView(getApplicationContext()); |
| 560 | + textView.setText("React Native DevMenu (" + getUniqueTag() + ")"); |
| 561 | + textView.setPadding(0, 50, 0, 0); |
| 562 | + textView.setGravity(Gravity.CENTER); |
| 563 | + textView.setTextColor(Color.BLACK); |
| 564 | + textView.setTextSize(17); |
| 565 | + textView.setTypeface(textView.getTypeface(), Typeface.BOLD); |
| 566 | + |
554 | 567 | mDevOptionsDialog =
|
555 | 568 | new AlertDialog.Builder(context)
|
| 569 | + .setCustomTitle(textView) |
556 | 570 | .setItems(
|
557 | 571 | options.keySet().toArray(new String[0]),
|
558 | 572 | new DialogInterface.OnClickListener() {
|
|
0 commit comments