mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Fix transparency
This commit is contained in:
parent
395760efeb
commit
3a6cb08c05
1 changed files with 9 additions and 2 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue