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