안드로이드 그림 선택, 미리 보기, 구궁격 그림 컨트롤, 드래그 정렬 구궁격 그림 컨트롤
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)
사용자 정의 속성 설명
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.