나는 갤러리를 둘러싸고있는 경계선을 없애기 위해 THIS 스레드를 따라 갔지만, 이제 문제는 내 이미지 위에 회색 배경이 있다는 것입니다. 그 투명한 회색 배경이 이미지 위에 나타납니다.
이는 ImageAdapter에서이 줄을 제거한 후 무슨 일이 있었 : 갤러리의 배경 위에 회색 배경이 있습니까?
public ImageAdapter(Context c) {
mContext = c;
TypedArray a = c.obtainStyledAttributes(R.styleable.Gallery1);
mGalleryItemBackground = a.getResourceId(R.styleable.Gallery1_android_galleryItemBackground, 0);
a.recycle();
}
및 어댑터의의 getView에서
나는 제거 :i.setBackgroundResource(mGalleryItemBackground);
가 지금은 국경을 해달라고하지만이 회색 패널이있다.
누구든지이 문제를 해결하는 방법을 알고 있습니다.