Commit e7db785c authored by sshivam95's avatar sshivam95

Add progress bar before loading the compaint fragment

parent 098e3d2c
...@@ -91,6 +91,7 @@ public class ComplaintFragment extends Fragment { ...@@ -91,6 +91,7 @@ public class ComplaintFragment extends Fragment {
} }
initViewPagerForImages(complaint); initViewPagerForImages(complaint);
initTabViews(complaint); initTabViews(complaint);
//Make progress circle gone After loading
getActivity().findViewById(R.id.loadingPanel).setVisibility(View.GONE); getActivity().findViewById(R.id.loadingPanel).setVisibility(View.GONE);
} }
} }
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="center"> android:gravity="center">
<!--Progress Bar will show unless the data is being loaded-->
<ProgressBar <ProgressBar
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment