Android : ProgressDialog for a particular fragment or view? -
while initialize progress dialog provide respective activity in constructor , setcancelable(false);
resist user(mask) work while loading.
my question whether can restrict user work in particular view/fragment, while user can work other views , fragments.
example given here
sample image
in image can see user cannot click within toprun fragment, while user can work outside (ex. can click highscore, play, boost etc..).
you can adjust bounderies of progressbar view's limits these properties in layout (xml)
android:layout_alignbottom="@id/yourviewid" android:layout_alignleft="@id/yourviewid" android:layout_alignright="@id/yourviewid" android:layout_aligntop="@id/yourviewid"
after adjusting, play margins, padding visibility or whatever need...
i hope helps!!
android android-fragments progressdialog mask
No comments:
Post a Comment