프로젝트
GitHub에서 보기
bhavesh-hirpara/MultipleImagePick
소개
여러 이미지를 선택할 수 있는 스마트 Android 갤러리입니다.
디자인 및 미디어What you can do
- luminous.ACTION_PICK for choosing single image.
- luminous.ACTION_MULTIPLE_PICK for choosing multiple image.
- Also custom Theme.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSmart Gallery with Single and Multiple image pick action.
Features
- luminous.ACTION_PICK for choosing single image.
- luminous.ACTION_MULTIPLE_PICK for choosing multiple image.
- Also custom Theme.
-
-

Usage
// For single image
Intent i = new Intent(Action.ACTION_PICK);
startActivityForResult(i, 100);
// For multiple images
Intent i = new Intent(Action.ACTION_MULTIPLE_PICK);
startActivityForResult(i, 200);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == 100 && resultCode == Activity.RESULT_OK) {
adapter.clear();
viewSwitcher.setDisplayedChild(1);
String single_path = data.getStringExtra("single_path");
imageLoader.displayImage("file://" + single_path, imgSinglePick);
} else if (requestCode == 200 && resultCode == Activity.RESULT_OK) {
String[] all_path = data.getStringArrayExtra("all_path");
ArrayList<CustomGallery> dataT = new ArrayList<CustomGallery>();
for (String string : all_path) {
CustomGallery item = new CustomGallery();
item.sdcardPath = string;
dataT.add(item);
}
viewSwitcher.setDisplayedChild(0);
adapter.addAll(dataT);
}
}
In AndroidManifest.xml
<activity android:name="CustomGalleryActivity" >
<intent-filter>
<action android:name="luminous.ACTION_PICK" />
<action android:name="luminous.ACTION_MULTIPLE_PICK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
License
Copyright 2013-2014 Bhavesh Hirpara
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
관련 프로젝트 살펴보기
불러오는 중…