Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file added .idea/caches/gradle_models.ser
Binary file not shown.
134 changes: 109 additions & 25 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 35 additions & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
### Developed by
[Himangi Patel](https://www.github.com/himangipatel)

### Customized by
[Softpal](https://www.github.com/softpal)

[![](https://jitpack.io/v/softpal/ImagesPreview.svg)](https://jitpack.io/#softpal/ImagesPreview)

**Features**

Expand All @@ -22,19 +26,20 @@ Add repository url and dependency in application module gradle file:
}

dependencies {
compile 'com.github.himangipatel:ImagesPreview:0.0.5'
implementation 'com.github.softpal:ImagesPreview:1.3'
}

## Usage
**1. Start by creating an instance of FilePickUtils and LifeCycleCallBackManager.**

```java
```javascript
final ArrayList<PreviewFile> previewFiles = new ArrayList<>();
previewFiles.add(new PreviewFile(image path,image description));
previewFiles.add(new PreviewFile(image path,image description));

Intent intent = new Intent(AppointmentDetailActivity.this, ImagePreviewActivity.class);
intent.putExtra(ImagePreviewActivity.IMAGE_LIST, previewFiles);
intent.putExtra(ImagePreviewActivity.CURRENT_ITEM, position);
intent.putExtra(ImagePreviewActivity.SHOULD_CACHE, true);
startActivity(intent);
```

Expand Down
30 changes: 18 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
compileSdkVersion 29
defaultConfig {
applicationId "com.himangi.imagepreviewdemo"
minSdkVersion 15
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
applicationId "com.softpal.imagepreviewdemo"
minSdkVersion 17
targetSdkVersion 29
versionCode 3
versionName "1.2"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation project(':imagepreview')

implementation 'com.github.bumptech.glide:glide:4.9.0'
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.himangi.imagepreviewdemo;
package com.softpal.imagepreviewdemo;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;
Expand All @@ -21,6 +21,6 @@ public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.himangi.imagepreviewdemo", appContext.getPackageName());
assertEquals("com.softpal.imagepreviewdemo", appContext.getPackageName());
}
}
6 changes: 4 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.himangi.imagepreviewdemo">
package="com.softpal.imagepreviewdemo">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:usesCleartextTraffic="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<activity android:name="com.softpal.imagepreviewdemo.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Loading