Fix transparency

This commit is contained in:
neslihanturan 2017-12-12 22:37:51 +03:00
parent 395760efeb
commit 3a6cb08c05

View file

@ -56,6 +56,8 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
LinearLayout bottomSheet; LinearLayout bottomSheet;
@BindView(R.id.fab_list) @BindView(R.id.fab_list)
FloatingActionButton fabList; FloatingActionButton fabList;
@BindView(R.id.transparentView)
View transparentView;
@Inject @Inject
LocationServiceManager locationManager; LocationServiceManager locationManager;
@ -94,6 +96,8 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
} }
private void initBottomSheetBehaviour() { private void initBottomSheetBehaviour() {
transparentView.setAlpha(0);
bottomSheet.getLayoutParams().height = getWindowManager() bottomSheet.getLayoutParams().height = getWindowManager()
.getDefaultDisplay().getHeight() / 16 * 9; .getDefaultDisplay().getHeight() / 16 * 9;
bottomSheetBehavior = BottomSheetBehavior.from(bottomSheet); bottomSheetBehavior = BottomSheetBehavior.from(bottomSheet);
@ -346,11 +350,14 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp
lockNearbyView(true); lockNearbyView(true);
// Begin the transaction // Begin the transaction
if (viewMode.isMap()) { // Begin the transaction
/*if (viewMode.isMap()) {
setMapFragment(); setMapFragment();
} else { } else {
setListFragment(); setListFragment();
} }*/
setMapFragment();
setListFragment();
hideProgressBar(); hideProgressBar();
} }