public void ChangeBackgroundCollectionHeight(bool isShowed) { var aspectSpace = Math.Round(topLayoutConstantAspect * DimensHelper.GetScreenWidth()); var margins = (DimensHelper.GetDimensById(Resource.Dimension.points_margin)); var topHeight = aspectSpace + margins; PointsHeightHelper.UpdateBackgroundCollectionViewHeight(collectionBackgroundView, isShowed, topHeight); }
public void ChangeBackgroundCollectionHeight(bool isShowed) { var aspectSpace = Math.Round(topLayoutConstantAspect * DimensHelper.GetScreenWidth()); var margins = (DimensHelper.GetDimensById(Resource.Dimension.points_margin)); var topHeight = aspectSpace + margins; if (collectionBackgroundView == null) { view = this.BindingInflate(FragmentId, null, true); collectionBackgroundView = view.FindViewById <View>(Resource.Id.collection_background_view); } PointsHeightHelper.UpdateBackgroundCollectionViewHeight(collectionBackgroundView, isShowed, topHeight); }