1/4/2024 0 Comments Flickr gallery app javascriptSince Moshi prefers classes that mirror the JSON, if there was any snake case variables to use, I would've preferred those be switched to camel case variables so I would've created a model class that had the camel case variables.had 2 model classes for Image (one as a data transfer object, and one to use throughout the app). ![]() tested and see if Kotlin Android Extensions works with ViewHolders now.added some prefetching optimizations related to Glide so the RecyclerView would scroll smoother.written some UI automation tests with Espresso.I chose it over Fresco because I would be able to manipulate the images as if it was an ImageView while configuring the images to how I need it to be.įor dependency injection, I used Dagger as it's commonly used in Android development for it and it was the one I'm most familiar with. To select a local location on your hard drive, just click the Browse folders button and choose a location. To load images, I used Glide as it was one of the most commonly used libraries in Android development for image loading. Select the publishing method: publish to folder, publish to FTP server or paste Javascript Gallery into existing html page using insert to page option. ![]() ![]() I chose coroutines over RxJava because the API was simplistic enough to do API calls but if anything complex like map or filter was required, I could rely on the builtin functional operators in the Collections APIs provided by Kotlin, and any stream-related operations could be done using channels. To communicate with the Flickr REST API, I used Retrofit with Kotlin coroutines. My task was to build a simple gallery application that would show off a series of images which would be fetched from Flickr's REST API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |