Merge pull request #524 from sigmabeta/android-banner-scaling

Fix banner scaling using a different method.
This commit is contained in:
Lioncash 2014-06-21 19:20:19 -04:00
commit 4d39076d04
2 changed files with 2 additions and 4 deletions

View File

@ -7,8 +7,8 @@
<ImageView
android:id="@+id/ListItemIcon"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_width="100dp"
android:layout_height="wrap_content"
tools:src="@drawable/ic_launcher"

View File

@ -65,8 +65,6 @@ public final class GameListAdapter extends ArrayAdapter<GameListItem>
if (icon != null)
{
icon.setImageBitmap(item.getImage());
icon.getLayoutParams().width = (int) ((860 / context.getResources().getDisplayMetrics().density) + 0.5);
icon.getLayoutParams().height = (int)((340 / context.getResources().getDisplayMetrics().density) + 0.5);
}
}