├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── zetenterprises │ │ │ └── sample │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── zetenterprises │ │ │ └── sample │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── zetenterprises │ │ └── sample │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── _config.yml ├── multimediapicker ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── xml │ │ │ │ └── paths.xml │ │ │ ├── drawable-hdpi │ │ │ │ ├── ic_arrow_back.png │ │ │ │ ├── ic_done_white.png │ │ │ │ ├── ic_camera_white.png │ │ │ │ └── ic_videocam_white_24dp.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_arrow_back.png │ │ │ │ ├── ic_done_white.png │ │ │ │ ├── ic_camera_white.png │ │ │ │ └── ic_videocam_white_24dp.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_arrow_back.png │ │ │ │ ├── ic_done_white.png │ │ │ │ ├── ic_camera_white.png │ │ │ │ └── ic_videocam_white_24dp.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_arrow_back.png │ │ │ │ ├── ic_camera_white.png │ │ │ │ ├── ic_done_white.png │ │ │ │ └── ic_videocam_white_24dp.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── ic_arrow_back.png │ │ │ │ ├── ic_done_white.png │ │ │ │ ├── ic_camera_white.png │ │ │ │ └── ic_videocam_white_24dp.png │ │ │ ├── drawable │ │ │ │ ├── folder_placeholder.xml │ │ │ │ └── image_placeholder.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── attrs.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ └── layout │ │ │ │ ├── image_item.xml │ │ │ │ ├── activity_gallery_picker.xml │ │ │ │ ├── folder_item.xml │ │ │ │ └── fragment_container.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── zet │ │ │ │ └── enterprises │ │ │ │ └── multimediapicker │ │ │ │ ├── listeners │ │ │ │ ├── OnImageClickListener.java │ │ │ │ └── OnFolderClickListener.java │ │ │ │ ├── utils │ │ │ │ ├── Constants.java │ │ │ │ └── ImageUtils.java │ │ │ │ ├── model │ │ │ │ ├── Folder.java │ │ │ │ └── Image.java │ │ │ │ ├── custom │ │ │ │ ├── CustomFrame.java │ │ │ │ ├── GridSpacingItemDecoration.java │ │ │ │ └── ProgressWheel.java │ │ │ │ ├── adapter │ │ │ │ ├── FolderPickerAdapter.java │ │ │ │ └── ImagePickerAdapter.java │ │ │ │ ├── MultimediaPicker.java │ │ │ │ ├── GalleryPickerActivity.java │ │ │ │ └── ContainerFragment.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── zet │ │ │ └── enterprises │ │ │ └── multimediapicker │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── zet │ │ └── enterprises │ │ └── multimediapicker │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── .idea ├── copyright │ └── profiles_settings.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── .gitattributes ├── gradle.properties ├── README.md ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /multimediapicker/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':multimediapicker' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | sample 3 | 4 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/xml/paths.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-hdpi/ic_arrow_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-hdpi/ic_arrow_back.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-hdpi/ic_done_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-hdpi/ic_done_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-mdpi/ic_arrow_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-mdpi/ic_arrow_back.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-mdpi/ic_done_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-mdpi/ic_done_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xhdpi/ic_arrow_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xhdpi/ic_arrow_back.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xhdpi/ic_done_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xhdpi/ic_done_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-hdpi/ic_camera_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-hdpi/ic_camera_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-mdpi/ic_camera_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-mdpi/ic_camera_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xhdpi/ic_camera_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xhdpi/ic_camera_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxhdpi/ic_arrow_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxhdpi/ic_arrow_back.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxhdpi/ic_camera_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxhdpi/ic_camera_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxhdpi/ic_done_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxhdpi/ic_done_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxxhdpi/ic_arrow_back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxxhdpi/ic_arrow_back.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxxhdpi/ic_done_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxxhdpi/ic_done_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxxhdpi/ic_camera_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxxhdpi/ic_camera_white.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-hdpi/ic_videocam_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-hdpi/ic_videocam_white_24dp.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-mdpi/ic_videocam_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-mdpi/ic_videocam_white_24dp.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xhdpi/ic_videocam_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xhdpi/ic_videocam_white_24dp.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxhdpi/ic_videocam_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxhdpi/ic_videocam_white_24dp.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable-xxxhdpi/ic_videocam_white_24dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZetDeveloper/WhastappMultimediaPicker/HEAD/multimediapicker/src/main/res/drawable-xxxhdpi/ic_videocam_white_24dp.png -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable/folder_placeholder.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /multimediapicker/src/main/res/drawable/image_placeholder.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /multimediapicker/src/main/java/com/zet/enterprises/multimediapicker/listeners/OnImageClickListener.java: -------------------------------------------------------------------------------- 1 | package com.zet.enterprises.multimediapicker.listeners; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * Created by admin on 03/02/2017. 7 | */ 8 | 9 | public interface OnImageClickListener { 10 | void onClick(View view, int position); 11 | } 12 | 13 | -------------------------------------------------------------------------------- /multimediapicker/src/main/java/com/zet/enterprises/multimediapicker/listeners/OnFolderClickListener.java: -------------------------------------------------------------------------------- 1 | package com.zet.enterprises.multimediapicker.listeners; 2 | 3 | import com.zet.enterprises.multimediapicker.model.Folder; 4 | 5 | /** 6 | * Created by admin on 03/02/2017. 7 | */ 8 | 9 | public interface OnFolderClickListener { 10 | 11 | void onFolderClick(Folder bucket); 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /multimediapicker/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 15sp 7 | 20sp 8 | 9 | -------------------------------------------------------------------------------- /app/src/test/java/com/zetenterprises/sample/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.zetenterprises.sample; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /multimediapicker/src/test/java/com/zet/enterprises/multimediapicker/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.zet.enterprises.multimediapicker; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /multimediapicker/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #FFFFFF 7 | 8 | #FFFFFF 9 | #9E9E9E 10 | #000000 11 | #80000000 12 | #009688 13 | 14 | 15 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Users\admin\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /multimediapicker/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Users\admin\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /multimediapicker/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 1dp 6 | 7 | 5dp 8 | 10dp 9 | 15dp 10 | 11 | 5dp 12 | 10dp 13 | 15dp 14 | 15 | 12sp 16 | 16sp 17 | 40dp 18 | 19 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /multimediapicker/src/main/res/layout/image_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 18 | -------------------------------------------------------------------------------- /multimediapicker/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /multimediapicker/src/main/java/com/zet/enterprises/multimediapicker/utils/Constants.java: -------------------------------------------------------------------------------- 1 | package com.zet.enterprises.multimediapicker.utils; 2 | 3 | /** 4 | * Created by admin on 03/02/2017. 5 | */ 6 | 7 | public class Constants { 8 | 9 | public static final int REQUEST_CODE_CAPTURE = 2000; 10 | 11 | public static final int FETCH_STARTED = 2001; 12 | public static final int FETCH_COMPLETED = 2002; 13 | public static final int ERROR = 2003; 14 | 15 | public static final int MAX_LIMIT = 999; 16 | 17 | public static final int PERMISSION_REQUEST_WRITE_EXTERNAL_STORAGE = 23; 18 | public static final int PERMISSION_REQUEST_CAMERA = 24; 19 | 20 | public static final String PREF_WRITE_EXTERNAL_STORAGE_REQUESTED = "writeExternalRequested"; 21 | public static final String PREF_CAMERA_REQUESTED = "cameraRequested"; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /multimediapicker/src/main/java/com/zet/enterprises/multimediapicker/model/Folder.java: -------------------------------------------------------------------------------- 1 | package com.zet.enterprises.multimediapicker.model; 2 | 3 | import java.util.ArrayList; 4 | 5 | /** 6 | * Created by admin on 03/02/2017. 7 | */ 8 | 9 | public class Folder { 10 | 11 | private String folderName; 12 | private ArrayList images; 13 | 14 | public Folder(String bucket) { 15 | folderName = bucket; 16 | images = new ArrayList<>(); 17 | } 18 | 19 | public String getFolderName() { 20 | return folderName; 21 | } 22 | 23 | public void setFolderName(String folderName) { 24 | this.folderName = folderName; 25 | } 26 | 27 | public ArrayList getImages() { 28 | return images; 29 | } 30 | 31 | public void setImages(ArrayList images) { 32 | this.images = images; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /multimediapicker/src/main/java/com/zet/enterprises/multimediapicker/custom/CustomFrame.java: -------------------------------------------------------------------------------- 1 | package com.zet.enterprises.multimediapicker.custom; 2 | 3 | import android.content.Context; 4 | import android.util.AttributeSet; 5 | import android.widget.FrameLayout; 6 | 7 | /** 8 | * Created by admin on 03/02/2017. 9 | */ 10 | 11 | public class CustomFrame extends FrameLayout { 12 | public CustomFrame(Context context) { 13 | super(context); 14 | } 15 | 16 | public CustomFrame(Context context, AttributeSet attrs) { 17 | super(context, attrs); 18 | } 19 | 20 | public CustomFrame(Context context, AttributeSet attrs, int defStyleAttr) { 21 | super(context, attrs, defStyleAttr); 22 | } 23 | 24 | @Override 25 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { 26 | super.onMeasure(widthMeasureSpec, widthMeasureSpec); 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/zetenterprises/sample/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.zetenterprises.sample; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.zetenterprises.sample", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /multimediapicker/src/androidTest/java/com/zet/enterprises/multimediapicker/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.zet.enterprises.multimediapicker; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.zet.enterprises.multimediapicker.test", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.0" 6 | defaultConfig { 7 | applicationId "com.zetenterprises.sample" 8 | minSdkVersion 14 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 25 | exclude group: 'com.android.support', module: 'support-annotations' 26 | }) 27 | compile 'com.android.support:appcompat-v7:25.1.0' 28 | compile project(':multimediapicker') 29 | testCompile 'junit:junit:4.12' 30 | } 31 | -------------------------------------------------------------------------------- /multimediapicker/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.0" 6 | 7 | defaultConfig { 8 | minSdkVersion 14 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | 13 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 14 | 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 20 | } 21 | } 22 | } 23 | 24 | dependencies { 25 | compile fileTree(dir: 'libs', include: ['*.jar']) 26 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 27 | exclude group: 'com.android.support', module: 'support-annotations' 28 | }) 29 | compile 'com.android.support:appcompat-v7:25.0.1' 30 | compile 'com.android.support:recyclerview-v7:25.0.1' 31 | compile 'com.android.support:design:25.0.1' 32 | compile 'com.github.bumptech.glide:glide:3.7.0' 33 | testCompile 'junit:junit:4.12' 34 | } 35 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 14 | 19 | 20 |