안드로이드 그림 선택, 미리 보기, 구궁격 그림 컨트롤, 드래그 정렬 구궁격 그림 컨트롤

5633 단어
7d54831e-5d92-11e6-83d0-4049039e0899.gif
MeiqiaSDK-Android를https://github.com/Meiqia/MeiqiaSDK-Android[]의 갤러리는 개별적으로 원본을 추출하여 그 중의 GridView,ListView와 RelativeLayout을 RecyclerView와Toolbar로 바꾸어 향후 프로젝트에서 직접 사용할 수 있도록 한다.데모는 위챗 모멘트의 일부 기능을 모방하였으니 상세한 사용법은 데모를 보십시오.이 창고에서 이 몇 가지 기능을 하고 있는 원숭이들이 개발 시간을 절약할 수 있기를 바란다.단일 그림 선택 다중 그림 선택 사진 선택 그림 선택 미리보기 (마이크로 사진 지원), 축소 보기 그림 미리보기 (마이크로 사진 지원), 축소 보기 glide,picasso,universal-image-loader,xutils 그림 불러오기 라이브러리 지원 설정 목록 스크롤 시 그림 불러오기를 일시 정지하는지 여부,리스트 스크롤이 중지되었을 때 이미지 불러오기(xutils를 이미지 불러오기 라이브러리로 사용할 때 이 설정은 무효) 정사각형, 원형 이미지, 테두리가 있는 원형 이미지 컨트롤 모멘트 목록 인터페이스의 구궁격 이미지 컨트롤
1.Gradle 추가 의존 "latestVersion"은 왼쪽에 있는 마븐-central 휘장 뒤에 있는 "숫자"를 가리키며 스스로 바꾸세요."latestVersion"이 무엇인지 더 이상 묻지 마십시오. 마이크로스피커 미리보기를 지원해야 하기 때문에 이 라이브러리에 포토뷰의 원본 코드를 도입하고 수정을 진행했기 때문에 프로젝트에서 포토뷰를 다시 도입하지 마십시오.
dependencies {
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:recyclerview-v7:25.1.0'
    compile 'cn.bingoogolapple:bga-adapter:1.1.5@aar'

    compile 'cn.bingoogolapple:bga-photopicker:latestVersion@aar'

    //                   
    compile 'com.github.bumptech.glide:glide:3.7.0'
//    compile 'com.squareup.picasso:picasso:2.5.2'
//    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
//    compile 'org.xutils:xutils:3.3.36'
}

2. 인터페이스 설명
/**
 * @param context               
 * @param imageDir                 。   null        ,    null       ,
 * @param maxChooseCount           
 * @param selectedImages             ,   null
 * @param pauseOnScroll               
 * @return
 */
public static Intent newIntent(Context context, File imageDir, int maxChooseCount, ArrayList selectedImages, boolean pauseOnScroll)

/**
 *           
 *
 * @param intent
 * @return
 */
public static ArrayList getSelectedImages(Intent intent)
/**
 *          intent
 *
 * @param context
 * @param saveImgDir             ,   null,         
 * @param previewImages                    
 * @param currentPosition          
 * @return
 */
public static Intent newIntent(Context context, File saveImgDir, ArrayList previewImages, int currentPosition)

/**
 *          intent
 *
 * @param context
 * @param saveImgDir        ,   null,         
 * @param photoPath      
 * @return
 */
public static Intent newIntent(Context context, File saveImgDir, String photoPath)

사용자 정의 속성 설명

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    



    
    
    
    
    
    
    
    
    
    
    
    
    
    



    
    
    
    
    
    
    
    
    
    
    
    

좋은 웹페이지 즐겨찾기