diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 58a553a..e270537 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,5 +1,9 @@ + + + + diff --git a/assets/faces.txt b/assets/faces.txt new file mode 100644 index 0000000..53f19bf --- /dev/null +++ b/assets/faces.txt @@ -0,0 +1,168 @@ +{ + "people":[ + { + "gravatar":"http://www.gravatar.com/avatar/feb86e26302b2efd0f937afa72a16fc6?d=monsterid&s=240", + "id":"0" + }, + { + "gravatar":"http://www.gravatar.com/avatar/487bb9d69c8795b5dd1e67332cfb8221?d=monsterid&s=240", + "id":"1" + }, + { + "gravatar":"http://www.gravatar.com/avatar/f31e2458313b36730a066ec703e51b11?d=monsterid&s=240", + "id":"2" + }, + { + "gravatar":"http://www.gravatar.com/avatar/7f8727786f6bb1a0c352acc4e4419a83?d=monsterid&s=240", + "id":"3" + }, + { + "gravatar":"http://www.gravatar.com/avatar/2dc3eab78ab131cc3a8acbc972c92b73?d=monsterid&s=240", + "id":"4" + }, + { + "gravatar":"http://www.gravatar.com/avatar/705da853dcc90e5aca80b4d085c1d214?d=monsterid&s=240", + "id":"5" + }, + { + "gravatar":"http://www.gravatar.com/avatar/28be0f28848e9b280845436bf3fad6ca?d=monsterid&s=240", + "id":"6" + }, + { + "gravatar":"http://www.gravatar.com/avatar/1c364f4cad4f61aa08dc8f112931e39f?d=monsterid&s=240", + "id":"7" + }, + { + "gravatar":"http://www.gravatar.com/avatar/bb03b2dafcda985bbeb52a4f446cc754?d=monsterid&s=240", + "id":"8" + }, + { + "gravatar":"http://www.gravatar.com/avatar/ec43363ba46bdb76aae3999edf692871?d=monsterid&s=240", + "id":"9" + }, + { + "gravatar":"http://www.gravatar.com/avatar/e32aee082c585f111fe3405d470112b0?d=monsterid&s=240", + "id":"10" + }, + { + "gravatar":"http://www.gravatar.com/avatar/c770015076fd08e56be5cfd4ca387298?d=monsterid&s=240", + "id":"11" + }, + { + "gravatar":"http://www.gravatar.com/avatar/53abc38c639a22f80174261df7f35f0d?d=monsterid&s=240", + "id":"12" + }, + { + "gravatar":"http://www.gravatar.com/avatar/cd68c5cafec543474541a2211dc7444f?d=monsterid&s=240", + "id":"13" + }, + { + "gravatar":"http://www.gravatar.com/avatar/2b7031546b140aa0612e4d2ce8f922c0?d=monsterid&s=240", + "id":"14" + }, + { + "gravatar":"http://www.gravatar.com/avatar/bcb735972933b10b1eb269886c7c799a?d=monsterid&s=240", + "id":"15" + }, + { + "gravatar":"http://www.gravatar.com/avatar/ab7fa42a14263894835ba1e5be031111?d=monsterid&s=240", + "id":"16" + }, + { + "gravatar":"http://www.gravatar.com/avatar/35287768ccb0b3c68067a511c4c3503f?d=monsterid&s=240", + "id":"17" + }, + { + "gravatar":"http://www.gravatar.com/avatar/45bba01ac921f96e49059da127800d6d?d=monsterid&s=240", + "id":"18" + }, + { + "gravatar":"http://www.gravatar.com/avatar/289040ff9f5916ba6d88c660334660ec?d=monsterid&s=240", + "id":"19" + }, + { + "gravatar":"http://www.gravatar.com/avatar/0808d58e098c64a5e9a1a411bce8d0d8?d=monsterid&s=240", + "id":"20" + }, + { + "gravatar":"http://www.gravatar.com/avatar/81801d4f62de321a0bd6903fe9459a5a?d=monsterid&s=240", + "id":"21" + }, + { + "gravatar":"http://www.gravatar.com/avatar/0cbc8aace3690ac2288754bfb12ef43c?d=monsterid&s=240", + "id":"22" + }, + { + "gravatar":"http://www.gravatar.com/avatar/dae071222608e84f665fdfd4678e8f2e?d=monsterid&s=240", + "id":"23" + }, + { + "gravatar":"http://www.gravatar.com/avatar/9b14143dfed8f4fa57428ad3e547bc0e?d=monsterid&s=240", + "id":"24" + }, + { + "gravatar":"http://www.gravatar.com/avatar/e0a27844ea90b44bcebfa3bec7a583bd?d=monsterid&s=240", + "id":"25" + }, + { + "gravatar":"http://www.gravatar.com/avatar/e60ecae6d42227896b877fe5ae80dcbf?d=monsterid&s=240", + "id":"26" + }, + { + "gravatar":"http://www.gravatar.com/avatar/cb8004fd244c846ef07902d30be3d584?d=monsterid&s=240", + "id":"27" + }, + { + "gravatar":"http://www.gravatar.com/avatar/5f68d5e3481bbd4e143454820f33d9b6?d=monsterid&s=240", + "id":"28" + }, + { + "gravatar":"http://www.gravatar.com/avatar/eae907f53220bbcaabfe0cda31be29d8?d=monsterid&s=240", + "id":"29" + }, + { + "gravatar":"http://www.gravatar.com/avatar/cd26f838cf344a14b8a1add418f8f2b8?d=monsterid&s=240", + "id":"30" + }, + { + "gravatar":"http://www.gravatar.com/avatar/35bbb9b6fbad099dcbb2901d281a8d8e?d=monsterid&s=240", + "id":"31" + }, + { + "gravatar":"http://www.gravatar.com/avatar/335ee931be900e9d28e769e5c9537084?d=monsterid&s=240", + "id":"32" + }, + { + "gravatar":"http://www.gravatar.com/avatar/547db7c434e8a83737d99f0f4eab2290?d=monsterid&s=240", + "id":"33" + }, + { + "gravatar":"http://www.gravatar.com/avatar/96dbb97764ca7f5d56073ccf401a9753?d=monsterid&s=240", + "id":"34" + }, + { + "gravatar":"http://www.gravatar.com/avatar/fedd24fdaae013b925eff616ad55fee8?d=monsterid&s=240", + "id":"35" + }, + { + "gravatar":"http://www.gravatar.com/avatar/fa0a22c3463a9ee3cb1acd6bc05b9a3e?d=monsterid&s=240", + "id":"36" + }, + { + "gravatar":"http://www.gravatar.com/avatar/674f1d9793c903baeb7607655cd0f787?d=monsterid&s=240", + "id":"37" + }, + { + "gravatar":"http://www.gravatar.com/avatar/ee5179d5ce0b3172b6b34c5ec94a61c0?d=monsterid&s=240", + "id":"38" + }, + { + "gravatar":"http://www.gravatar.com/avatar/fde11b1d20465b0dcb7c9879aca299a3?d=monsterid&s=240", + "id":"39" + }, + { + "gravatar":"http://www.gravatar.com/avatar/e6f6d95ae0cad8073ccac961c3c9e9d7?d=monsterid&s=240", + "id":"40" + } + ] +} \ No newline at end of file diff --git a/build.gradle b/build.gradle index 1df1c50..feecec2 100644 --- a/build.gradle +++ b/build.gradle @@ -25,10 +25,21 @@ repositories { } } +dependencies { + compile 'com.squareup.picasso:picasso:2.3.3' + compile 'com.google.code.gson:gson:2.2.4' + compile 'com.squareup.retrofit:retrofit:1.6.1' +} + android { compileSdkVersion 19 buildToolsVersion "19.1.0" + defaultConfig { + minSdkVersion 5 + targetSdkVersion 18 + } + sourceSets { main { manifest.srcFile 'AndroidManifest.xml' diff --git a/res/layout/main.xml b/res/layout/main.xml index 7dc988a..c26b906 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -6,13 +6,14 @@ android:layout_height="wrap_content" android:layout_marginTop="5dip"> - - +