parent
562f7e7e41
commit
9c9b6bc0d6
2 changed files with 1 additions and 4 deletions
|
|
@ -1007,9 +1007,6 @@ public class VideoDetailFragment
|
|||
int height = isPortrait
|
||||
? (int) (metrics.widthPixels / (16.0f / 9.0f))
|
||||
: (int) (metrics.heightPixels / 2f);
|
||||
thumbnailImageView.setScaleType(isPortrait
|
||||
? ImageView.ScaleType.CENTER_CROP
|
||||
: ImageView.ScaleType.FIT_CENTER);
|
||||
thumbnailImageView.setLayoutParams(
|
||||
new FrameLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, height));
|
||||
thumbnailImageView.setMinimumHeight(height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue