누군가가이 GridView가 Droidfu 캐시에서 이미지를 가져온 경우에도 원활하게 스크롤하지 못하는 이유를 알려주실 수 있습니까?Droidfu WebImageView 및 GridView
WebImageView, ImageLoader를 사용하는 내 자신의 defaulthandler, sqlLite 호출을 제거하고 정적 URL을 사용하고, 이미지가로드 된 후 숨기고 페이드 처리를 시도했습니다. 부드럽게 스크롤하는 것처럼 보이지 않습니다. jerkiness). 이걸 일으키는 DroidFu인가요? 나는 이미 그것에 투자했기 때문에 Droidfu를 덤핑하는 것을 싫어할 것입니다. 분명히 GridView에 삽입 된 로컬 이미지 리소스는 괜찮습니다. 이 문제에 너무 오래 머물 렀습니다.
public View getView(int position, View convertView, ViewGroup parent) {
mCursor.moveToPosition(position);
String thumbUrl=imagePath+mCursor.getString(mCursor.getColumnIndex("imagename"));
if (convertView == null) {
convertView=(View)mInflater.inflate(R.layout.grid_thumb_layout, null);
}
WebImageView thumb=(WebImageView)convertView.findViewById(R.id.thumb);
thumb.reset();
thumb.setImageUrl(thumbUrl);
thumb.loadImage();
return convertView;
}
XML :
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<GridView android:id="@+id/gridview" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:numColumns="auto_fit"
android:verticalSpacing="2dp" android:horizontalSpacing="2dp"
android:columnWidth="150dp"
android:rowHeight="150dp"
android:fadingEdge="vertical"
android:paddingLeft="2dp" android:paddingRight="2dp"
android:gravity="center" />
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="150dp"
android:layout_height="150dp">
<com.github.droidfu.widgets.WebImageView android:id="@+id/thumb"
android:scaleType="fitCenter" android:layout_weight="1"
android:layout_width="150dp"
android:layout_height="150dp" xmlns:android="http://schemas.android.com/apk/res/android" >
</com.github.droidfu.widgets.WebImageView>
</RelativeLayout>
이 행 간의 이미지 스와핑과 관련된 이러한 문제가 있습니까? – dwbrito
이 시점에서 나는 정말로 기억이 안납니다. 나는 더 빈약 한 도서관으로 옮겼다. –
어쨌든 나는 "droid-fu"(점화) 문제를 다소 수정했다. – dwbrito