Commit 770d77e8 authored by Varun Patil's avatar Varun Patil

Add loading spinner to map

parent b037731f
......@@ -191,6 +191,10 @@ public class MapFragment extends Fragment implements TextWatcher,
}
private void setupMap() {
if (getView() == null) {
return;
}
newSmallCard = (LinearLayout) getActivity().findViewById(R.id.new_small_card);
slidingLayout = (SlidingUpPanelLayout) getActivity().findViewById(R.id.sliding_layout);
placeNameTextView = (TextView) getActivity().findViewById(R.id.place_name);
......@@ -258,6 +262,8 @@ public class MapFragment extends Fragment implements TextWatcher,
addMarkerClick(v);
}
});
getActivity().findViewById(R.id.loadingPanel).setVisibility(View.GONE);
}
private void setUpDrawer() {
......
......@@ -139,4 +139,16 @@
</android.support.v4.widget.DrawerLayout>
</LinearLayout>
<RelativeLayout
android:id="@+id/loadingPanel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center">
<ProgressBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />
</RelativeLayout>
</FrameLayout>
\ No newline at end of file
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