Comments (32)
About the two things:
- Title: yes, it's absolutely possible.
- Gallery: I didn't thought the plugin to work in that way and the change it's a bit harder.
from photoviewer.
If you find some time.. I would post a bounty on it, but maybe we would find some more people to make a donation for that feature.
By the way, Title should be optional.
from photoviewer.
Sorry, for the spam: UIDocumentController gives you the ability to save, share etc.
Is it possible to add a (optional) save button on android? Maybe with a long-press-gesture? Nothing important, but nice to have
from photoviewer.
The feature to handle a set of images can be planned. Maybe moving it to a different issues.
The title will be optional. I agree with that.
from photoviewer.
Yes, It's possible with a long press gesture. I can work on both, the share and title ;)
from photoviewer.
👍 Thank you.
from photoviewer.
If you are working over a project you can try pulling from master for both features. I made a push.
from photoviewer.
Wow, you're fast!!!
from photoviewer.
iOS work fine, Android does not work:
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:20: error: cannot find symbol
final GestureDetector gestureDetector = new GestureDetector(new GestureDetector.SimpleOnGestureListener() {
^
symbol: class GestureDetector
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:61: error: cannot find symbol
public boolean onTouchEvent(MotionEvent event) {
^
symbol: class MotionEvent
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:20: error: cannot find symbol
final GestureDetector gestureDetector = new GestureDetector(new GestureDetector.SimpleOnGestureListener() {
^
symbol: class GestureDetector
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:20: error: package GestureDetector does not exist
final GestureDetector gestureDetector = new GestureDetector(new GestureDetector.SimpleOnGestureListener() {
^
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:37: error: cannot find symbol
actTitle = this.getIntent().getStringExtra("title");
^
symbol: variable actTitle
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:38: error: cannot find symbol
if( !actTitle.equals("") ) {
^
symbol: variable actTitle
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:39: error: cannot find symbol
this.setTitle(actTitle);
^
symbol: variable actTitle
location: class PhotoActivity
from photoviewer.
Ups... I forgot the imports. Sorry! Added now!
Thanks for you testing :)
from photoviewer.
Nope.. still
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:66: error: cannot find symbol
public boolean onTouchEvent(MotionEvent event) {
^
symbol: class MotionEvent
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:25: error: cannot find symbol
public void onLongPress(MotionEvent e) {
^
symbol: class MotionEvent
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:29: error: cannot find symbol
sharingIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(imageUrl));
^
symbol: variable Uri
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:31: error: cannot find symbol
startActivity(Intent.createChooser(shareIntent, "Share"));
^
symbol: variable shareIntent
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:41: error: cannot find symbol
actTitle = this.getIntent().getStringExtra("title");
^
symbol: variable actTitle
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:42: error: cannot find symbol
if( !actTitle.equals("") ) {
^
symbol: variable actTitle
location: class PhotoActivity
/Users/Hirbod/Desktop/appdev/Nachbarschaft/platforms/android/src/com/speryans/PhotoViewer/PhotoActivity/PhotoActivity.java:43: error: cannot find symbol
this.setTitle(actTitle);
^
symbol: variable actTitle
location: class PhotoActivity
from photoviewer.
Note that I'm editing in a text editor hehe.
from photoviewer.
:))
from photoviewer.
Done!
from photoviewer.
It works on iOS, and build does not fail on Android anymore, but now I get:
Uncaught ReferenceError: PhotoViewer is not defined
from photoviewer.
I will check in a project because for some reason is not getting the plugin on Android. Did you try to remove the plugin and add it again?
from photoviewer.
yes, I also removed my android platform.
from photoviewer.
also tried to download from npm and directly from git
from photoviewer.
Ok, Problem caused trough
cordova-hot-code-push-plugin
I removed the plugin. Now it works.
from photoviewer.
That's awesome! Thanks for let me know!
from photoviewer.
Weird.. as soon as I install cordova-hot-code-push-plugin, your plugin fail to work. Before I updated everything worked fine.. what happened?
from photoviewer.
I'm reading about the plugin, but the main change that can break it is the domain of the plugin (Plugin ID) updated for NPM.
from photoviewer.
iOS works fine.. I guess there is some cache I need to clear somehow..
from photoviewer.
Please remove the plugin and install the new version. I think that is the plugin id
from photoviewer.
ok
from photoviewer.
Yes, it works, even with cordova-hot-code-push-plugin 👍
Thanks. But why does the plugin id make problems?
from photoviewer.
I dont see any title on android, long-press-gesture also does not work
from photoviewer.
Maybe the cordova-hot-code-push-plugin can't accept plugins with dashes in the id ;).
from photoviewer.
No, I dont think so, I have all the cordova-plugin-file etc installed.
Nevermind, it works now, but as said, title and gesture does not work
from photoviewer.
The long press seems to be related with the PhotoView library that handle the zoom feature. I will go deep on this problem. I'm checking in a project first to update it again.
from photoviewer.
Implemented on version 1.1.1 with a new Title/Share bar.
from photoviewer.
Confirmed! Looks great and works perfectly. Sadly there is no "save to photos" option, but I think that is ok.
from photoviewer.
Related Issues (20)
- remove title, keep options
- swipe between images HOT 2
- Android Build Failed with Duplicate Class
- Change Button Close Position HOT 1
- Ionic5 - not compatible? HOT 5
- PhotoViewer is Error HOT 5
- Why this file content is 1.2.4 ??? HOT 1
- header is not used in plugin anywhere HOT 1
- This plugin should not depend on jCenter for Android builds
- compile removed in Gradle 7 HOT 1
- Is the Photoviewer only for Cordova projects? HOT 7
- Not working with Capacitor 4 and Android 12
- Build fails - Cordova@11 android@11 HOT 8
- 1.3.0 HOT 3
- v1.3.0 not available for install HOT 11
- Could not find com.commit451:PhotoViewsquareup.picasso:picasso HOT 3
- PhotoViewer not passing provided headers on Android HOT 2
- Rare chrashes where mArgs causes a null pointer exception
- Android 13 support - PhotoViewer unable to open image as permission changed HOT 5
- not working in android 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photoviewer.