I dont know why this is happening: After loading the image with the Ion library, my image shows two white bars below and above image. I don't want to have that.
My ImageView is displayed in a listview item. My adapter code looks like this:
if (node.getImageUrl() != null) { ivImage.setVisibility(View.VISIBLE); Ion.with(ivImage) .placeholder(R.drawable.anne_eli_icons_set_up_anne_eli_logo_530px) //.error(R.drawable.error_image) //.animateLoad(android.R.anim.cycle_interpolator) .animateIn(android.R.anim.fade_in) .load("http://app.anne-eli.at/" + node.getImageUrl().getUrlBig()); } else { ivImage.setVisibility(View.GONE); }
My imageview layout like this:
<LinearLayout ...
<ImageView
android:id="@+id/fragment_appointment_list_item_article_iv_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/anne_eli_icons_set_up_anne_eli_logo_530px"
android:background="@color/gray1" />
</LinearLayout>
Any ideas?