diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java
index 820ab487a..ed8c785e6 100644
--- a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java
+++ b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyMapFragment.java
@@ -48,6 +48,10 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
private View transparentView;
private int currBottomSheetState;
private boolean isFabOpen=false;
+ private Animation rotate_backward;
+ private Animation fab_close;
+ private Animation fab_open;
+ private Animation rotate_forward;
public NearbyMapFragment() {
}
@@ -96,12 +100,17 @@ public class NearbyMapFragment extends android.support.v4.app.Fragment {
bottomSheetDetails = getActivity().findViewById(R.id.bottom_sheet_details);
bottomSheetDetailsBehavior = BottomSheetBehavior.from(bottomSheetDetails);
bottomSheetDetailsBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);
- //moreInfo = getActivity().findViewById(R.id.more_info_bar);
+
fabList = getActivity().findViewById(R.id.fab_list);
fabPlus = getActivity().findViewById(R.id.fab_plus);
fabCamera = getActivity().findViewById(R.id.fab_camera);
fabGallery = getActivity().findViewById(R.id.fab_galery);
+ fab_open = AnimationUtils.loadAnimation(getActivity(), R.anim.fab_open);
+ fab_close = AnimationUtils.loadAnimation(getActivity(),R.anim.fab_close);
+ rotate_forward = AnimationUtils.loadAnimation(getActivity(),R.anim.rotate_forward);
+ rotate_backward = AnimationUtils.loadAnimation(getActivity(),R.anim.rotate_backward);
+
transparentView = getActivity().findViewById(R.id.transparentView);
}
diff --git a/app/src/main/res/anim/fab_close.xml b/app/src/main/res/anim/fab_close.xml
new file mode 100644
index 000000000..a8e450d48
--- /dev/null
+++ b/app/src/main/res/anim/fab_close.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/anim/fab_open.xml b/app/src/main/res/anim/fab_open.xml
new file mode 100644
index 000000000..0cc5ee308
--- /dev/null
+++ b/app/src/main/res/anim/fab_open.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/anim/rotate_backward.xml b/app/src/main/res/anim/rotate_backward.xml
new file mode 100644
index 000000000..9bbb510ba
--- /dev/null
+++ b/app/src/main/res/anim/rotate_backward.xml
@@ -0,0 +1,10 @@
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/anim/rotate_forward.xml b/app/src/main/res/anim/rotate_forward.xml
new file mode 100644
index 000000000..c1173e870
--- /dev/null
+++ b/app/src/main/res/anim/rotate_forward.xml
@@ -0,0 +1,10 @@
+
+
+
+
\ No newline at end of file