In Java file:
Dialog dialog = new Dialog(Dashboard.this, R.style.FullHeightDialog);
dialog.setContentView(R.layout.progress_dialog);
dialog.show();
progress_dialog.xml
<?xml version="1.0" encoding="utf-8"?>
<com.xorin.ress.gprogressbar.SmoothProgressBar xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/pbar"
    style="@style/GNowProgressBar"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center"
    android:indeterminate="true" />
output comes like:

I want to display center progress bar with full width which is currently not displaying..
