Remove bottomSheetDetails stays visible problem

This commit is contained in:
neslihanturan 2018-03-02 15:51:40 +03:00
parent d51e7e624c
commit 2af9a85809
2 changed files with 2 additions and 0 deletions

View file

@ -272,6 +272,7 @@ public class NearbyMapFragment extends DaggerFragment {
bottomSheetDetails = getActivity().findViewById(R.id.bottom_sheet_details); bottomSheetDetails = getActivity().findViewById(R.id.bottom_sheet_details);
bottomSheetDetailsBehavior = BottomSheetBehavior.from(bottomSheetDetails); bottomSheetDetailsBehavior = BottomSheetBehavior.from(bottomSheetDetails);
bottomSheetDetailsBehavior.setState(BottomSheetBehavior.STATE_HIDDEN); bottomSheetDetailsBehavior.setState(BottomSheetBehavior.STATE_HIDDEN);
bottomSheetDetails.setVisibility(View.VISIBLE);
fabPlus = getActivity().findViewById(R.id.fab_plus); fabPlus = getActivity().findViewById(R.id.fab_plus);
fabCamera = getActivity().findViewById(R.id.fab_camera); fabCamera = getActivity().findViewById(R.id.fab_camera);

View file

@ -8,6 +8,7 @@
app:layout_behavior="@string/bottom_sheet_behavior" app:layout_behavior="@string/bottom_sheet_behavior"
app:behavior_peekHeight="72dp" app:behavior_peekHeight="72dp"
app:behavior_hideable="true" app:behavior_hideable="true"
android:visibility="gone"
> >
<LinearLayout <LinearLayout