basshelal / unsplashphotopicker Goto Github PK
View Code? Open in Web Editor NEW๐ท Android Library providing a photo picker to search and download photos from Unsplash
License: MIT License
๐ท Android Library providing a photo picker to search and download photos from Unsplash
License: MIT License
Add those smooth shared element transitions to make it seem like the photo is coming up from the picker and not just magically appearing
Basically when the RecyclerView will be empty we need a way to allow for a callback that will allow us to do something when something goes wrong.
I can think of 3 error states:
We mainly want this so that the caller can add Views/Layouts to display when one of these happens and callbacks too to maybe act accordingly as well.
Something like UnsplashPhotoPicker.show(...)
would be ideal and maybe also UnsplashPhotoPicker.get(...)
.
show
will show the picker in a Fragment
and get
will return a View
that you can add into your ViewGroups
in code.
So the user can drag it up and down to move it vertically and after a certain threshold it will dismiss
I'm recieving Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'char java.lang.String.charAt(int)' on a null object reference
inside UnplashPickerAdapter.onBindViewHolder()
with minifyEnabled true
.
Solution:
-keep class com.github.basshelal.unsplashpicker.data* {*;}
-keepclassmembers class com.github.basshelal.unsplashpicker.data* {
<fields>;
<init>();
<methods>;
}
I'm not sure where this is exactly, but the calls seem to be returning null
for some parameters consistently, like there's a pattern.
For an UnsplashPhoto
its urls will always have medium == null
and large == null
This needs investigation because the backend code is so goddamn unnecessarily confusing for now reason!
Remove all the unnecessary classes and files and simplify backend code into fewer entities because currently it's a maze of classes and files that get called only once!
Add unit tests for backend code
Unsplash has (recently?) added Sponsored photos. This isn't part of the official API (yet?) but there is a way to find out if an image is sponsored or not so we should use this to determine and show if a photo is sponsored
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.