Skip to content

Commit 6243596

Browse files
committed
scale type changed to FITXY for imageview
1 parent dfd8429 commit 6243596

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

UnitySplashScreen/Android/app/src/main/java/com/example/unitysplash/android/SplashScreen.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ protected void onCreate(Bundle savedInstanceState) {
6262
splashImage.setImageResource(mSplashImage);
6363
layout.addView(splashImage, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
6464

65+
splashImage.setScaleType(ImageView.ScaleType.FIT_XY);
66+
6567
setContentView(layout, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
6668
}
6769

Binary file not shown.

0 commit comments

Comments
 (0)