How to implement custom device photos gallery for android?

前端 未结 1 1255
灰色年华
灰色年华 2021-01-18 02:18

I\'m working on android application that will have basic image gallery functionality included. I\'ve managed to build activity that fetches list of photos from my applicatio

相关标签:
1条回答
  • 2021-01-18 02:34

    this question is pretty old but, as it has a lot of views and quite a lot of upvotes, it could be good to bring an answer to it.

    So, first the tutorials evolved a bit and you can find some cool stuff for your #1 option:

    • This is the one I prefer
    • This one uses a deprecated UI element but is also cool
    • This uses an Adapter which is, to me, the best way to proceed.

    For your #2 option, I do not see any idea to not to return to the original activity because you still do not have control over the result of the intent you send through the system.

    But there are another solution that you didn't mention: there are librairies which are very cool and that you could customise to get exactly what you want:

    • This one is a bit fancy
    • This one seems also to be pretty cool but you could have problems importing it because it's not a gradle project
    • This is the one I would definitely use.
    0 讨论(0)
提交回复
热议问题