src/android/Notification.java
/**
     * Builds and shows a native Android alert with given Strings
     * @param message           The message the alert should display
     * @param title             The title of the alert
     * @param buttonLabel       The label of the button
     * @param callbackContext   The callback context
     */
Builds and shows a native Android alert with given Strings
@param message           The message the alert should display
@param title             The title of the alert
@param buttonLabel       The label of the button
@param callbackContext   The callback context
Builds and shows a native Android alert with given Strings @param message The message the alert should display @param title The title of the alert @param buttonLabel The label of the button @param callbackContext The callback context
public synchronized void alert(final String message, final String title, final String buttonLabel, final CallbackContext callbackContext) {
    	final CordovaInterface cordova = this.cordova;
        Runnable runnable = new Runnable() {
            public void run() {
                Builder dlg = createDialog(cordova); 
                dlg.setMessage(message);
                dlg.setTitle(title);
                dlg.setCancelable(true);
                   dlg.setPositiveButton(buttonLabel,
                        new AlertDialog.OnClickListener() {
                            public void onClick(DialogInterface dialog, int which) {
                                dialog.dismiss();
                                callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, 0));
                            }
                        });
                dlg.setOnCancelListener(new AlertDialog.OnCancelListener() {
                    public void onCancel(DialogInterface dialog)
                    {
                        dialog.dismiss();
                        callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, 0));
                    }
                });
                            Button btnNegative = dlg.getButton(Dialog.BUTTON_NEGATIVE);
                            btnNegative.setTextSize(50);
                     }
              });
 New End
                changeTextDirection(dlg);
            };
        };
        this.cordova.getActivity().runOnUiThread(runnable);
    }
public synchronized void alert ( final String message , final String title , final String buttonLabel , final CallbackContext callbackContext ) { final CordovaInterface cordova = this . cordova ; Runnable runnable = new Runnable ( ) { public void run ( ) { Builder dlg = createDialog ( cordova ) ; dlg . setMessage ( message ) ; dlg . setTitle ( title ) ; dlg . setCancelable ( true ) ; dlg . setPositiveButton ( buttonLabel , new AlertDialog . OnClickListener ( ) { public void onClick ( DialogInterface dialog , int which ) { dialog . dismiss ( ) ; callbackContext . sendPluginResult ( new PluginResult ( PluginResult . Status . OK , 0 ) ) ; } } ) ; dlg . setOnCancelListener ( new AlertDialog . OnCancelListener ( ) { public void onCancel ( DialogInterface dialog ) { dialog . dismiss ( ) ; callbackContext . sendPluginResult ( new PluginResult ( PluginResult . Status . OK , 0 ) ) ; } } ) ; changeTextDirection ( dlg ) ; } ; } ; this . cordova . getActivity ( ) . runOnUiThread ( runnable ) ; }
Builds and shows a native Android alert with given Strings
 @param message           The message the alert should display
 @param title             The title of the alert
 @param buttonLabel       The label of the button
 @param callbackContext   The callback context
Builds and shows a native Android alert with given Strings @param message The message the alert should display @param title The title of the alert @param buttonLabel The label of the button @param callbackContext The callback context
// new AlertDialog.Builder(cordova.getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_DARK); //    AlertDialog.Builder dlg = new AlertDialog.Builder(cordova.getActivity(), AlertDialog.THEME_DEVICE_DEFAULT_DARK); // This works //   dlg.getButton(AlertDialog.BUTTON_POSITIVE).setTextSize(TypedValue.COMPLEX_UNIT_PX, 44); // Could not get to work //   dlg.getButton(dlg.BUTTON_POSITIVE).setTextColor(Color.parseColor("#f34235")); // Could not get to work //dlg.getButton(AlertDialog.BUTTON_POSITIVE).setTextSize(50); //(TypedValue.COMPLEX_UNIT_PX, 22); //dlg.getButton(AlertDialog.BUTTON_NEGATIVE).setTextSize(50); //(TypedValue.COMPLEX_UNIT_PX, 22); //// New Start //              dlg.setOnShowListener(new AlertDialog.OnShowListener() { // //                  @Override //                     public void onShow(DialogInterface dialog) { //                            Button btnPositive = dlg.getButton(Dialog.BUTTON_POSITIVE); //                            btnPositive.setTextSize(50); // //                            Button btnNegative = dlg.getButton(Dialog.BUTTON_NEGATIVE); //                            btnNegative.setTextSize(50); //                     } //              }); //// New End //   dlg.getButton(dlg.BUTTON_POSITIVE).setTextColor(Color.parseColor("#f34235")); // Could not get to work          