-4
UniversalImageLoader 라이브러리를 사용하여 이미지를 GridView에로드하고 있습니다. 그리고 바이트 배열의 형태로 이미지를 가지고 있습니다.바이트 배열에서 gridview로 이미지로드
바이트 배열
나는 내 SQLite 데이터베이스에서 바이트 배열을 얻고되는 ArrayList와 UniversalImageLoader을 사용하는 방법.
UniversalImageLoader 라이브러리를 사용하여 이미지를 GridView에로드하고 있습니다. 그리고 바이트 배열의 형태로 이미지를 가지고 있습니다.바이트 배열에서 gridview로 이미지로드
바이트 배열
나는 내 SQLite 데이터베이스에서 바이트 배열을 얻고되는 ArrayList와 UniversalImageLoader을 사용하는 방법.
이미지 뷰
보이드 setImage2이 배열 어댑터 목록 설정 맵 상점 맵이 방법 및 비트 맵의 ArrayList를 통과 바이트 배열 오브젝트이 방법 사용을 시도 패스 CustomGridViewAdapter 합격 (바이트 [] byteImage2) {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inDither = false;
options.inJustDecodeBounds = false;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
options.inSampleSize = 1;
options.inPurgeable = true;
options.inPreferQualityOverSpeed = true;
options.inTempStorage = new byte[32 * 1024];
Bitmap bmp = BitmapFactory.decodeByteArray(byteImage2, 0,
byteImage2.length, options); // this bitmap store in Bitmap ArrayList in add
}
이미지를로드하는 완벽한 솔루션 인 Android Query를 사용하는 것이 좋습니다. –
downvoted 이유는 무엇이든 !! UIL은 ** uri **를 주장하고 있습니다. ** 바이트 배열 ** – user3607798
를 사용하기위한 어떤 기회가 있습니까? 여기를보세요 - http://stackoverflow.com/questions/16231489/can-universal-image-loader-for-android-work-with-images-from-sqlite- 아마도 도움이 될 것입니다. – NOSTRA