summaryrefslogtreecommitdiff
path: root/Source/Android/src/org
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2013-08-17 13:25:40 -0400
committerLioncash <mathew1800@gmail.com>2013-08-17 13:25:40 -0400
commita9d634086cf5c351918449ef48a4d880e7fdbdff (patch)
tree41b5a4f1b13b737285078d1f1dd8e3e3aab3e010 /Source/Android/src/org
parent1f6c63f1d8be7d94b09ed025ca256d38b9d8d962 (diff)
[Android] Change the Game List items to be formatted similarly to how the folder browser is. Also ensure the 'no banner' icon scales down to the same size as the other banners.
Diffstat (limited to 'Source/Android/src/org')
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java2
-rw-r--r--Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java6
2 files changed, 7 insertions, 1 deletions
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java b/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java
index d7170bb474..0571c9d213 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/GameListAdapter.java
@@ -36,7 +36,7 @@ public final class GameListAdapter extends ArrayAdapter<GameListItem>
if (v == null)
{
LayoutInflater vi = (LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
- v = vi.inflate(id, null);
+ v = vi.inflate(id, parent, false);
}
final GameListItem item = items.get(position);
diff --git a/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java b/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java
index 92ad986e91..10f44f69e4 100644
--- a/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java
+++ b/Source/Android/src/org/dolphinemu/dolphinemu/GameListItem.java
@@ -31,8 +31,14 @@ public final class GameListItem implements Comparable<GameListItem>
{
try
{
+ // Open the no banner icon.
InputStream noBannerPath = ctx.getAssets().open("NoBanner.png");
+
+ // Decode the bitmap.
image = BitmapFactory.decodeStream(noBannerPath);
+
+ // Scale the bitmap to match other banners.
+ image = Bitmap.createScaledBitmap(image, 96, 32, false);
}
catch (IOException e)
{