异常图片:
正常图片:
发生概率:偶发,重启app后则无异常
图片xml布局:
<ImageView
android:id="@+id/pv_poi_detail_full_img"
android:layout_width="wrap_content"
android:maxWidth="@dimen/poi_detail_full_img_width"
android:maxHeight="@dimen/navi_setting_v2x_panel_width"
android:layout_height="wrap_content"
android:focusable="false"
修复方案:宽度改为设置match_parent模式
原因:自适应宽度导致
此bug发生偶发,虽然找到解决方法,但疑问仍在,每一次打开放大图都是重新加载视图,为何会有此种偶发bug。若必现则很好解释,但是偶发所以仍无法正在确认背后发生bug的真实原因,故此记录一下。