mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 12:32:47 +00:00
Merge pull request #7387 from zackhow/covers-nostretch
Android: Fix cover stretching and show more games per row
This commit is contained in:
commit
4a34dba001
@ -21,9 +21,10 @@ public class PicassoUtils
|
|||||||
{
|
{
|
||||||
Picasso.with(imageView.getContext())
|
Picasso.with(imageView.getContext())
|
||||||
.load(cover)
|
.load(cover)
|
||||||
.fit()
|
|
||||||
.noFade()
|
.noFade()
|
||||||
.noPlaceholder()
|
.noPlaceholder()
|
||||||
|
.fit()
|
||||||
|
.centerInside()
|
||||||
.config(Bitmap.Config.ARGB_8888)
|
.config(Bitmap.Config.ARGB_8888)
|
||||||
.error(R.drawable.no_banner)
|
.error(R.drawable.no_banner)
|
||||||
.into(imageView);
|
.into(imageView);
|
||||||
@ -32,9 +33,10 @@ public class PicassoUtils
|
|||||||
{
|
{
|
||||||
Picasso.with(imageView.getContext())
|
Picasso.with(imageView.getContext())
|
||||||
.load(cover)
|
.load(cover)
|
||||||
.fit()
|
|
||||||
.noFade()
|
.noFade()
|
||||||
.noPlaceholder()
|
.noPlaceholder()
|
||||||
|
.fit()
|
||||||
|
.centerInside()
|
||||||
.config(Bitmap.Config.ARGB_8888)
|
.config(Bitmap.Config.ARGB_8888)
|
||||||
.error(R.drawable.no_banner)
|
.error(R.drawable.no_banner)
|
||||||
.into(imageView);
|
.into(imageView);
|
||||||
@ -47,9 +49,10 @@ public class PicassoUtils
|
|||||||
{
|
{
|
||||||
Picasso.with(imageView.getContext())
|
Picasso.with(imageView.getContext())
|
||||||
.load(CoverHelper.buildGameTDBUrl(gameFile, CoverHelper.getRegion(gameFile)))
|
.load(CoverHelper.buildGameTDBUrl(gameFile, CoverHelper.getRegion(gameFile)))
|
||||||
.fit()
|
|
||||||
.noFade()
|
.noFade()
|
||||||
.noPlaceholder()
|
.noPlaceholder()
|
||||||
|
.fit()
|
||||||
|
.centerInside()
|
||||||
.config(Bitmap.Config.ARGB_8888)
|
.config(Bitmap.Config.ARGB_8888)
|
||||||
.error(R.drawable.no_banner)
|
.error(R.drawable.no_banner)
|
||||||
.into(imageView, new Callback()
|
.into(imageView, new Callback()
|
||||||
@ -68,6 +71,8 @@ public class PicassoUtils
|
|||||||
.load(CoverHelper.buildGameTDBUrl(gameFile, "US"))
|
.load(CoverHelper.buildGameTDBUrl(gameFile, "US"))
|
||||||
.fit()
|
.fit()
|
||||||
.noFade()
|
.noFade()
|
||||||
|
.fit()
|
||||||
|
.centerInside()
|
||||||
.noPlaceholder()
|
.noPlaceholder()
|
||||||
.config(Bitmap.Config.ARGB_8888)
|
.config(Bitmap.Config.ARGB_8888)
|
||||||
.error(R.drawable.no_banner)
|
.error(R.drawable.no_banner)
|
||||||
@ -88,6 +93,8 @@ public class PicassoUtils
|
|||||||
.load(CoverHelper.buildGameTDBUrl(gameFile, "EN"))
|
.load(CoverHelper.buildGameTDBUrl(gameFile, "EN"))
|
||||||
.fit()
|
.fit()
|
||||||
.noFade()
|
.noFade()
|
||||||
|
.fit()
|
||||||
|
.centerInside()
|
||||||
.noPlaceholder()
|
.noPlaceholder()
|
||||||
.config(Bitmap.Config.ARGB_8888)
|
.config(Bitmap.Config.ARGB_8888)
|
||||||
.error(R.drawable.no_banner)
|
.error(R.drawable.no_banner)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
tools:layout_width="160dp"
|
tools:layout_width="160dp"
|
||||||
android:layout_height="368dp"
|
android:layout_height="270dp"
|
||||||
android:transitionName="card_game"
|
android:transitionName="card_game"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<integer name="game_grid_columns">6</integer>
|
<integer name="game_grid_columns">8</integer>
|
||||||
</resources>
|
</resources>
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<integer name="game_grid_columns">3</integer>
|
<integer name="game_grid_columns">4</integer>
|
||||||
</resources>
|
</resources>
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<integer name="game_grid_columns">4</integer>
|
<integer name="game_grid_columns">6</integer>
|
||||||
</resources>
|
</resources>
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<integer name="game_grid_columns">2</integer>
|
<integer name="game_grid_columns">3</integer>
|
||||||
|
|
||||||
<!-- Default GameCube landscape layout -->
|
<!-- Default GameCube landscape layout -->
|
||||||
<integer name="BUTTON_A_X">865</integer>
|
<integer name="BUTTON_A_X">865</integer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user