[Free] FancyGallery extension

Without the precise number of images it cannot work

A routine that avoid the step by step system Is possible,but only with the precise Number of images

1 Like

Yes, send me please aia file please

I have sent the aia file to @adwapbao in the PM. Also posting the blocks here so that it will help anyone having the same query. (I have marked the changes made in below blocks)

Also,

If i understood this :point_up: correctly, then I hope the same has been solved with above blocks, as now you can have any number of images and don’t need to specify any specific number

4 Likes

Congrats for your extension @marco_tanzi

Can i use video instead of image?

No you can’t use video,only images

I made gallery extension.
regards

1 Like

Wonderful,Thanks @marco_tanzi

I have imported
import android.os.Environment;

This is result:
error: cannot find symbol Assets = ApplicationSpecificDirectory() + “/assets/” ;

What else do I need to import?
What a mistake am I making ?

Thanks in advance Marco.

2 Likes

instead use this -

public String ApplicationSpecificDirectory() {
      String a = this.context.getExternalFilesDir((String)null).getPath();
      return a;
   }
1 Like

Withouth

  • “/assets/”
2 Likes

Dear, can i make gallery view with local sdcard images via this Fancy Gallery extension?

See Screen 2 example method of my extension

Here there Is a method on how to load from sdcard

Translate in English,please

Good afternoon! Help me make the cache separately, it used to be loaded into a separate folder, the pictures opened from the folder where the cache was, and now it gives an error, and no longer loads the cache.
I used this extension for cache

Screenshot_2021-09-30-00-15-26-363_com.android.chrome

I can’t help you.
I think only media cache extension developer can help you

Hi, is there a way to have the index of selected image?
Thanks

Max

To have the index of the photo you are viewing you can use the variable ‘number’ of the for loop you use (see examples in previous posts)
Regards Marco

Thanks Marco, if i want assign the number of the loop as caption to the picture is the right solution but my question is when i click on a picture is there a block that give me that number? The block onClick give me as result “clicked”.
Best regards
Massimo

Massimo you are right, it is not possible to obtain the image index with the onclick event. You can only get it with the method I proposed to you by scrolling through the images.

Regards
Marco

Good afternoon! How do I configure this Button? When the button is pressed , the screen is black .
Help ???