• Stars
    star
    538
  • Rank 82,538 (Top 2 %)
  • Language
    Kotlin
  • Created over 5 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TedImagePicker is simple/beautiful/smart image picker

TedImagePicker Android Arsenal

TedImagePicker is simple/beautiful/smart image picker

  • Support Image/Video/Image&Video
  • Support Single/Multi select
  • Support more configuration option
Image Select Select Album Scroller



Demo

Image Select Select Album Scroller



Setup

Gradle

Maven Central

repositories {
  google()
  mavenCentral()
}

dependencies {
    implementation 'io.github.ParkSangGwon:tedimagepicker:x.y.z'
    //implementation 'io.github.ParkSangGwon:tedimagepicker:1.1.10'
}

If you think this library is useful, please press star button at upside.



How to use

1.Enable databinding

  • TedImagePicker use databinding
  • Set enable databinding in your app build.gradle
dataBinding {
    enabled = true
}

2.Start TedImagePicker/TedRxImagePicker

  • TedImagePicker support Listener and RxJavastyle

Listener

Single image
  • Kotlin
TedImagePicker.with(this)
    .start { uri -> showSingleImage(uri) }
  • Java
TedImagePicker.with(this)
        .start(new OnSelectedListener() {
            @Override
            public void onSelected(@NotNull Uri uri) {
                showSingleImage(uri);
            }
        });
TedImagePicker.with(this)
        .start(uri -> {
            showSingleImage(uri);
        });
Multi image
  • Kotlin
TedImagePicker.with(this)
    .startMultiImage { uriList -> showMultiImage(uriList) }
  • Java
TedImagePicker.with(this)
        .startMultiImage(new OnMultiSelectedListener() {
            @Override
            public void onSelected(@NotNull List<? extends Uri> uriList) {
                showMultiImage(uriList);
            }
        });
TedImagePicker.with(this)
        .startMultiImage(uriList -> {
            showMultiImage(uriList);
        });

RxJava

Single image
TedRxImagePicker.with(this)
    .start()
    .subscribe({ uri ->
    }, Throwable::printStackTrace)
Multi image
TedRxImagePicker.with(this)
    .startMultiImage()
    .subscribe({ uriList ->
    }, Throwable::printStackTrace)



Customize

  • You can customize what you want

Function

Common

Function Description
mediaType(MediaType) MediaType.IMAGE / MediaType.VIDEO / MediaType.IMAGE_AND_VIDEO
cameraTileBackground(R.color.xxx) camera Tile Background Color
cameraTileImage(R.drawable.xxx) camera tile image
showCameraTile(Boolean) default true show camera tile
scrollIndicatorDateFormat(String) (default: YYYY.MM) Format of date on scroll indicator
showTitle(Boolean)(default: true) Show title
title(String or R.string.xxx) (default: 'Select Image','์‚ฌ์ง„ ์„ ํƒ') title
backButton(R.drawable.xxx) back button
zoomIndicator(Boolean) (default: true) zoom indicator
image() image
video() video
imageAndVideo() image and video
imageCountTextFormat(String) (default: %s): %s์žฅ, Count: %s image count text format
savedDirectoryName(String) saved directory name from take picture using camera
startAnimation(Int, Int) start animation
finishAnimation(Int, Int) finish animation
errorListener() error listener for error
cancelListener() cancel listener
  • Change picker primary color : override color name in your colors.xml
    <color name="ted_image_picker_primary">#your_color_code</color>
    <color name="ted_image_picker_primary_pressed">#your_color_code</color>

Multi Select

Method Description
selectedUri(List<Uri>) selected uri
buttonGravity(ButtonGravity) You can change done button location top or bottom
buttonText(String or R.string.xxx) (default: 'Done','์™„๋ฃŒ') you can change done button text
buttonBackground(R.drawable.xxx) (default: Blue Background) you can change done button background color
buttonTextColor(R.color.xxx) (default: white) done button text color
buttonDrawableOnly(R.drawable.xxx) (default: false) If you want show drawable button without text, use this method
max(Int, String or R.string.xxx) max content should picked from user device
min(Int, String or R.string.xxx) min content should picked from user device
drawerAlbum() / dropDownAlbum() (default: Drawer) You can choice Drawer or DropDown album style



FAQ

- Do not need to check permissions?

  • Yes, TedImagePicker automatically check permission. : TedImagePicker use TedPermission
  • But If you need You can check permission before start TedImagePicker.

- java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/databinding/DataBinderMapperImpl;

  • You have to enable databinding
  • Read this



License

Copyright 2019 Ted Park

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.```

More Repositories

1

TedPermission

Easy check permission library for Android Marshmallow
Java
1,740
star
2

TedBottomPicker

TedBottomPicker is simple image picker using bottom sheet
Java
1,113
star
3

TedPicker

Multiple image select library for Android. Take a picture or Select from gallary
Java
278
star
4

TedNaverMapClustering

๋„ค์ด๋ฒ„์ง€๋„์šฉ ํด๋Ÿฌ์Šคํ„ฐ ์œ ํ‹ธ๋ฆฌํ‹ฐ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ
Kotlin
165
star
5

TedKeyboardObserver

TedKeyboardObserver is keyboard's visibility observer
Kotlin
99
star
6

TedDataBindingSample

Java
90
star
7

TedAdHelper

[Android]Mediation advertise helper for ADMOB,FACEBOOK - Support Native, Banner, Backpress Dialog, Front AD
Java
83
star
8

GifProgressSample

Java
69
star
9

ClearEditText

Java
58
star
10

ProductFlavorSample

Java
55
star
11

IncomingCallMarketBroadcastReceiver

Java
52
star
12

DLog

Java
48
star
13

Introduce

๋ฐ•์ƒ๊ถŒ ์†Œ๊ฐœ
43
star
14

GoogleMapCustomMarker

Java
41
star
15

UpdateCheck

Java
40
star
16

TedAdmobDialog

[Android]BackPress Ad Dialog for Admob
Java
37
star
17

TedOnActivityResult

StartActivityForResult() / OnActivityResult() using Coroutine/RxJava
Java
34
star
18

TedPaletteSample

Java
22
star
19

BuildTimeSpeedUpSample

Java
21
star
20

KakaoLogin

Java
19
star
21

TedUtil

Useful util class for android
Java
17
star
22

TedDynamicLinkSample

Java
17
star
23

ObjectUtils

Java
15
star
24

NoMoreApplicationForLibraryModule

Kotlin
14
star
25

TedDeepLinkSample

Kotlin
13
star
26

RangeBarChart

A powerful ๐Ÿš€ Android range bar chart library as well as scaling, panning and animations.
Kotlin
12
star
27

EnumRetrofitSample

Kotlin
7
star
28

StartActivitySample

Kotlin
3
star
29

IntervalTimePicker

IntervalTimePicker can control interval of minutes using TimePicker.
Kotlin
3
star
30

OSSRH-69704

1
star