Skip to content
Permalink
Browse files

File/Directory lister and picker

  • Loading branch information...
FirzenYogesh committed Jul 22, 2017
0 parents commit 2e8675ea718177120cf329e76f0f19a72158e9bb
Showing with 1,086 additions and 0 deletions.
  1. +9 −0 .gitignore
  2. +1 −0 FilesLister/.gitignore
  3. +50 −0 FilesLister/build.gradle
  4. +82 −0 FilesLister/deploy.gradle
  5. +25 −0 FilesLister/proguard-rules.pro
  6. +11 −0 FilesLister/src/main/AndroidManifest.xml
  7. +313 −0 FilesLister/src/main/java/yogesh/firzen/filelister/FileListAdapter.java
  8. +116 −0 FilesLister/src/main/java/yogesh/firzen/filelister/FileListerDialog.java
  9. +84 −0 FilesLister/src/main/java/yogesh/firzen/filelister/FilesListerView.java
  10. +11 −0 FilesLister/src/main/java/yogesh/firzen/filelister/OnFileSelectedListener.java
  11. BIN FilesLister/src/main/res/drawable-hdpi/ic_audiotrack_black_48dp.png
  12. BIN FilesLister/src/main/res/drawable-hdpi/ic_create_new_folder_black_48dp.png
  13. BIN FilesLister/src/main/res/drawable-hdpi/ic_folder_black_48dp.png
  14. BIN FilesLister/src/main/res/drawable-hdpi/ic_insert_drive_file_black_48dp.png
  15. BIN FilesLister/src/main/res/drawable-hdpi/ic_photo_black_48dp.png
  16. BIN FilesLister/src/main/res/drawable-hdpi/ic_subdirectory_arrow_left_black_48dp.png
  17. BIN FilesLister/src/main/res/drawable-hdpi/ic_videocam_black_48dp.png
  18. BIN FilesLister/src/main/res/drawable-mdpi/ic_audiotrack_black_48dp.png
  19. BIN FilesLister/src/main/res/drawable-mdpi/ic_create_new_folder_black_48dp.png
  20. BIN FilesLister/src/main/res/drawable-mdpi/ic_folder_black_48dp.png
  21. BIN FilesLister/src/main/res/drawable-mdpi/ic_insert_drive_file_black_48dp.png
  22. BIN FilesLister/src/main/res/drawable-mdpi/ic_photo_black_48dp.png
  23. BIN FilesLister/src/main/res/drawable-mdpi/ic_subdirectory_arrow_left_black_48dp.png
  24. BIN FilesLister/src/main/res/drawable-mdpi/ic_videocam_black_48dp.png
  25. BIN FilesLister/src/main/res/drawable-xhdpi/ic_audiotrack_black_48dp.png
  26. BIN FilesLister/src/main/res/drawable-xhdpi/ic_create_new_folder_black_48dp.png
  27. BIN FilesLister/src/main/res/drawable-xhdpi/ic_folder_black_48dp.png
  28. BIN FilesLister/src/main/res/drawable-xhdpi/ic_insert_drive_file_black_48dp.png
  29. BIN FilesLister/src/main/res/drawable-xhdpi/ic_photo_black_48dp.png
  30. BIN FilesLister/src/main/res/drawable-xhdpi/ic_subdirectory_arrow_left_black_48dp.png
  31. BIN FilesLister/src/main/res/drawable-xhdpi/ic_videocam_black_48dp.png
  32. BIN FilesLister/src/main/res/drawable-xxhdpi/ic_audiotrack_black_48dp.png
  33. BIN FilesLister/src/main/res/drawable-xxhdpi/ic_create_new_folder_black_48dp.png
  34. BIN FilesLister/src/main/res/drawable-xxhdpi/ic_folder_black_48dp.png
  35. BIN FilesLister/src/main/res/drawable-xxhdpi/ic_insert_drive_file_black_48dp.png
  36. BIN FilesLister/src/main/res/drawable-xxhdpi/ic_photo_black_48dp.png
  37. BIN FilesLister/src/main/res/drawable-xxhdpi/ic_subdirectory_arrow_left_black_48dp.png
  38. BIN FilesLister/src/main/res/drawable-xxhdpi/ic_videocam_black_48dp.png
  39. BIN FilesLister/src/main/res/drawable-xxxhdpi/ic_audiotrack_black_48dp.png
  40. BIN FilesLister/src/main/res/drawable-xxxhdpi/ic_create_new_folder_black_48dp.png
  41. BIN FilesLister/src/main/res/drawable-xxxhdpi/ic_folder_black_48dp.png
  42. BIN FilesLister/src/main/res/drawable-xxxhdpi/ic_insert_drive_file_black_48dp.png
  43. BIN FilesLister/src/main/res/drawable-xxxhdpi/ic_photo_black_48dp.png
  44. BIN FilesLister/src/main/res/drawable-xxxhdpi/ic_subdirectory_arrow_left_black_48dp.png
  45. BIN FilesLister/src/main/res/drawable-xxxhdpi/ic_videocam_black_48dp.png
  46. +8 −0 FilesLister/src/main/res/drawable/ic_subdirectory_up_black_48dp.xml
  47. +21 −0 FilesLister/src/main/res/layout/dialog_create_folder.xml
  48. +12 −0 FilesLister/src/main/res/layout/dialog_main.xml
  49. +31 −0 FilesLister/src/main/res/layout/item_file_lister.xml
  50. +3 −0 FilesLister/src/main/res/values/strings.xml
  51. +10 −0 FilesLister/src/main/res/values/styles.xml
  52. +31 −0 build.gradle
  53. +17 −0 gradle.properties
  54. +160 −0 gradlew
  55. +90 −0 gradlew.bat
  56. +1 −0 settings.gradle
@@ -0,0 +1,9 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
@@ -0,0 +1 @@
/build
@@ -0,0 +1,50 @@
apply plugin: 'com.android.library'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
// applicationId "yogesh.firzen.filelister"
minSdkVersion 14
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions{
abortOnError false
}
}


dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:26.0.0-beta2'
implementation 'com.android.support:design:26.0.0-beta2'
implementation 'com.android.support:recyclerview-v7:26.0.0-beta2'
implementation 'com.android.support:support-annotations:26.0.0-beta2'
implementation 'yogesh.firzen:MukkiyaSevaigal:1.0.6'
}



allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}

apply from: 'deploy.gradle'
@@ -0,0 +1,82 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

def artifact = new Properties()
artifact.load(new FileInputStream("deploy.properties"))

version=artifact.version
group=artifact.groupId

install {
repositories.mavenInstaller {
pom.project {
packaging 'aar'
groupId artifact.groupId
artifactId artifact.id
version artifact.version
name artifact.id // pom.project.name must be same as bintray.pkg.name
url artifact.siteUrl
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'firzenyogesh'
name 'S.Yogesh'
email 'syogesh0705@gmail.com'
}
}
scm {
connection artifact.gitUrl
developerConnection artifact.gitUrl
url artifact.siteUrl
}
}
}
}

Properties properties = new Properties()
File propFile = "${System.properties['user.home']}${File.separator}.gradle${File.separator}bintray.properties" as File
properties.load(propFile.newDataInputStream())

bintray {
user = properties.getProperty("bintray.user")
key = properties.getProperty("bintray.apikey")

configurations = ['archives']
pkg {
repo = "maven"
name = artifact.id
websiteUrl = artifact.siteUrl
vcsUrl = artifact.gitUrl
licenses = artifact.licenses
publish = true
version {
name = artifact.version
}
}
}

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
// options.encoding = 'UTF-8'
}

artifacts {
archives javadocJar
archives sourcesJar
}
@@ -0,0 +1,25 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /root/CodingGround/sdk/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
@@ -0,0 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="yogesh.firzen.filelister">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" />
</manifest>

0 comments on commit 2e8675e

Please sign in to comment.
You can’t perform that action at this time.