Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to put a ProgressBar circle in AlertDialog where Cancel/Neutral button is

$
0
0

As shown in the picture, I would like the spinning circle to override where the Cancel/Neutral button is. I tried pb.TranslationZ and it only shows a portion of the circle so it's still beneath the Button Bar. The current location of the spinning circle is for checkboxes and these checkboxes reside in a multi-select dropdown. As I scroll, the only part that's not moving in an AlertDialog is the bottom bar where the buttons are, which is why I would like to put the spinning circle there.

Is there a way to show it in place of or on top of those buttons? Thanks.

AlertDialog.Builder builder;
builder.SetNegativeButton("Cancel", this);
builder.SetPositiveButton("APPLY", Apply);
builder.SetNeutralButton("Neutral", this);

ProgressBar pb = new ProgressBar(_context);
pb.ScaleX = 0.5f;
pb.ScaleY = 0.5f;
pb.TranslationX = -374;
** pb.TranslationZ = 74;**
builder.SetView(pb);
builder.SetOnCancelListener(this);
builder.Show();


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>