2011-09-08 5 views
0

갤러리 튜토리얼 용 모노 드로이드 예제를 복제하려고합니다. 그러나이 예에서는 중요한 점 중 하나가 누락되었습니다. ImageView의 배경 스타일을 설정하는 방법입니다.모노 스테이이드로 획득 한 StyledAttributes

TypedArray attr = mContext.obtainStyledAttributes(R.styleable.HelloGallery); 
    mGalleryItemBackground = attr.getResourceId(R.styleable.HelloGallery_android_galleryItemBackground, 0); 
    attr.recycle(); 

    .... 

    imageView.setBackgroundResource(mGalleryItemBackground); 

은 내가 monodroid에 복제하는 방법을 아무 생각 : 우리는 다음과 같은 코드가 안드로이드 튜토리얼에 ! 미리 감사드립니다. 알렉스

답변