Skip to content

Commit

Permalink
Merge pull request #524 from sigmabeta/android-banner-scaling
Browse files Browse the repository at this point in the history
Fix banner scaling using a different method.
  • Loading branch information
lioncash committed Jun 21, 2014
2 parents 72050d4 + b940e69 commit 4d39076
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -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"

Expand Down
Expand Up @@ -65,8 +65,6 @@ public View getView(int position, View convertView, ViewGroup parent)
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);
}
}

Expand Down

0 comments on commit 4d39076

Please sign in to comment.