Skip to content

Instantly share code, notes, and snippets.

@juliomarcos
Last active August 29, 2015 14:14
Show Gist options
  • Save juliomarcos/fc0b22a95e4cd016dd6c to your computer and use it in GitHub Desktop.
Save juliomarcos/fc0b22a95e4cd016dd6c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:wheel="http://schemas.android.com/apk/res-auto"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="150dp"
android:layout_height="150dp"
android:background="@drawable/round_rect_material_bg_light"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" >
<com.pnikosis.materialishprogress.ProgressWheel
android:id="@+id/progressWheel"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_gravity="center"
wheel:barColor="@color/roxo_2"
wheel:progressIndeterminate="true"
/>
</FrameLayout>
</RelativeLayout>
public class DialogUtils {
public static ProgressDialog makeProgressWithoutTitleNorMessageDialog(Context context) {
ProgressDialog dialog = new ProgressDialog(context);
try {
dialog.show();
} catch (WindowManager.BadTokenException e) {
}
dialog.setCancelable(false);
dialog.setContentView(R.layout.dialog_progress_no_message_nor_title);
return dialog;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment