ADD week 5
This commit is contained in:
		| @@ -0,0 +1,26 @@ | ||||
| package com.google.android.material.carousel; | ||||
|  | ||||
| import android.view.View; | ||||
| import androidx.recyclerview.widget.RecyclerView; | ||||
|  | ||||
| /* loaded from: classes.dex */ | ||||
| public class FullScreenCarouselStrategy extends CarouselStrategy { | ||||
|     @Override // com.google.android.material.carousel.CarouselStrategy | ||||
|     KeylineState onFirstChildMeasuredWithMargins(Carousel carousel, View view) { | ||||
|         float containerHeight; | ||||
|         int i; | ||||
|         int i2; | ||||
|         RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams(); | ||||
|         if (carousel.isHorizontal()) { | ||||
|             containerHeight = carousel.getContainerWidth(); | ||||
|             i = layoutParams.leftMargin; | ||||
|             i2 = layoutParams.rightMargin; | ||||
|         } else { | ||||
|             containerHeight = carousel.getContainerHeight(); | ||||
|             i = layoutParams.topMargin; | ||||
|             i2 = layoutParams.bottomMargin; | ||||
|         } | ||||
|         float f = i + i2; | ||||
|         return CarouselStrategyHelper.createLeftAlignedKeylineState(view.getContext(), f, containerHeight, new Arrangement(0, 0.0f, 0.0f, 0.0f, 0, 0.0f, 0, Math.min(containerHeight + f, containerHeight), 1, containerHeight)); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user