안드로이드 개발 질문/답변
(글 수 45,052)
GridView 를 이용하여 Gallery를 만드는데 찾아본것은 전부 겔러리 테두리가 첨부 이미지 같은 형식 이였습니다.
사진 테두리를 다르게 수정 할 수 있는 방법이 없을까요?
지금 적용 된 테두리는..
<resources> <declare-styleable name="theme"> <attr name="android:galleryItemBackground"/> </declare-styleable> </resources>
private int background; ... TypedArray a = c.obtainStyledAttributes(R.styleable.theme); background = a.getResourceId(R.styleable.theme_android_galleryItemBackground, 0); a.recycle(); ... imageView.setBackgroundResource(background);
이런식으로 GridView 의 Adapter 안에 적용 되어 있는 상태 입니다.
현재 제가 구성한 화면캡쳐를 첨부 합니다.
조언 부탁드립니다.




CustomAdapter를 만드시면 될것 같네요.
다른 AdapterView에 들어가는 Adapter와 크게 다르지 않으니 보고 따라서 만드시면 됩니다.
getView만 잘만드시면 됩니다.