Giter Site home page Giter Site logo

Title / Share function about photoviewer HOT 32 CLOSED

hirbod avatar hirbod commented on August 18, 2024
Title / Share function

from photoviewer.

Comments (32)

sarriaroman avatar sarriaroman commented on August 18, 2024

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.

hirbod avatar hirbod commented on August 18, 2024

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.

hirbod avatar hirbod commented on August 18, 2024

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.

sarriaroman avatar sarriaroman commented on August 18, 2024

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.

sarriaroman avatar sarriaroman commented on August 18, 2024

Yes, It's possible with a long press gesture. I can work on both, the share and title ;)

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

👍 Thank you.

from photoviewer.

sarriaroman avatar sarriaroman commented on August 18, 2024

If you are working over a project you can try pulling from master for both features. I made a push.

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

Wow, you're fast!!!

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

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.

sarriaroman avatar sarriaroman commented on August 18, 2024

Ups... I forgot the imports. Sorry! Added now!

Thanks for you testing :)

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

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.

sarriaroman avatar sarriaroman commented on August 18, 2024

Note that I'm editing in a text editor hehe.

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

:))

from photoviewer.

sarriaroman avatar sarriaroman commented on August 18, 2024

Done!

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

It works on iOS, and build does not fail on Android anymore, but now I get:

Uncaught ReferenceError: PhotoViewer is not defined

from photoviewer.

sarriaroman avatar sarriaroman commented on August 18, 2024

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.

hirbod avatar hirbod commented on August 18, 2024

yes, I also removed my android platform.

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

also tried to download from npm and directly from git

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

Ok, Problem caused trough

cordova-hot-code-push-plugin

I removed the plugin. Now it works.

from photoviewer.

sarriaroman avatar sarriaroman commented on August 18, 2024

That's awesome! Thanks for let me know!

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

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.

sarriaroman avatar sarriaroman commented on August 18, 2024

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.

hirbod avatar hirbod commented on August 18, 2024

iOS works fine.. I guess there is some cache I need to clear somehow..

from photoviewer.

sarriaroman avatar sarriaroman commented on August 18, 2024

Please remove the plugin and install the new version. I think that is the plugin id

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

ok

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

Yes, it works, even with cordova-hot-code-push-plugin 👍
Thanks. But why does the plugin id make problems?

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

I dont see any title on android, long-press-gesture also does not work

from photoviewer.

sarriaroman avatar sarriaroman commented on August 18, 2024

Maybe the cordova-hot-code-push-plugin can't accept plugins with dashes in the id ;).

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

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.

sarriaroman avatar sarriaroman commented on August 18, 2024

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.

sarriaroman avatar sarriaroman commented on August 18, 2024

Implemented on version 1.1.1 with a new Title/Share bar.

from photoviewer.

hirbod avatar hirbod commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.