I need to center the title in a progressDialog, I am trying to do it using styles

```
  <style name="progressDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
    <item name="android:layout_height">wrap_content</item>
    <item name="android:windowMinWidthMajor">90%</item>
    <item name="android:windowMinWidthMinor">90%</item>
    <item name="android:textColor">@color/popup_main_title</item>
    <item name="android:layout_centerHorizontal">true</item>
    <item name="android:textAlignment">center</item>
    <item name="android:textColorSecondary">@color/popup_main_title</item>
    <item name="android:textColorPrimary">@color/popup_main_title</item>
</style>

 progressDialog = new ProgressDialog(context, R.style.progressDialogTheme);
        progressDialog.setTitle(context.getResources().getString(R.string.firmware_downloading_firmware_title));
        progressDialog.setMessage(context.getResources().getString(R.string.firmware_downloading_firmware_message));

```