價格:免費
更新日期:2018-06-15
檔案大小:2.8M
目前版本:1.0
版本需求:Android 4.1 以上版本
官方網站:mailto:facundo.esquivel2009@gmail.com
You can find the source code in the following public repository: https://gitlab.com/Esquivel/contacts
The app has a main screen with a grid of contacts and detail screen with selected data contact.
The data is obtained by an API ("randomuser") and stored in a internal cache memory. It has an expiration time, and a manual expiration mechanism.
"Material Design" guidelines used for the design of the user interface, having a toolbar with collapsible image, items with ripple type selection and cardviews with contact information.
I used "RxJava" for the management of the working threads.
In the service layer you can see how to do a request, execute certain validations and return an object with a valid status filtering those that did not have it, and ordering the results. All in a safe worker thread.
I used "Picasso" for the management of images, using placeholders for cases in which there are no images. Focus was kept on the correct handling of the images to avoid memory leaks.