# hacknews_android_zh **Repository Path**: lianlupeng/hacknews_android_zh ## Basic Information - **Project Name**: hacknews_android_zh - **Description**: hacknews的android客户端,主要使用Square开源的相关工具来实现相应的功能,阅读了大部分代码,觉的项目不错,添加了部分注释 - **Primary Language**: Android - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 22 - **Forks**: 2 - **Created**: 2015-03-31 - **Last Updated**: 2021-10-29 ## Categories & Tags **Categories**: mobile-app **Tags**: None ## README [![Build Status](https://travis-ci.org/hidroh/materialistic.svg?branch=master)](https://travis-ci.org/hidroh/materialistic) [![Coverage Status](https://coveralls.io/repos/hidroh/materialistic/badge.svg?branch=master)](https://coveralls.io/r/hidroh/materialistic?branch=master) [![Join the chat at https://gitter.im/hidroh/materialistic](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hidroh/materialistic?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) ### 项目apk 很多人的手机无法使用Google的服务,我将自己编译的APK放在assets目录下面,供大家体验 ## Hacker News client for Android - Material Design full-stack进行的翻译 ### Setup **Requirements** - Latest Android SDK tools - Latest Android platform tools - Android SDK Build tools 21.1.2 - Android SDK 22 - Android Support Repository - Android Support Library 22.0.0 - Google Repository - Google Play services 7.0.0[GA的使用] 强烈建议读者安装VPN下载android的sdk和相关的服务 **Dependencies** ### API:客户端使用的API - [Official Hacker News API](https://github.com/HackerNews/API) - [Algolia Hacker News Search API](https://github.com/algolia/hn-search) ### 依赖的库:Android自身提供 - [appcompat-v7](https://developer.android.com/tools/support-library/features.html#v7-appcompat) / [recyclerview-v7](https://developer.android.com/tools/support-library/features.html#v7-recyclerview) / [cardview-v7](https://developer.android.com/tools/support-library/features.html#v7-cardview) ### 第三方库Square : - [Retrofit](https://github.com/square/retrofit) / [OkHttp](https://github.com/square/okhttp)网络请求有关的库,支持缓存,支持注解的service定制,支持异步的回调 ### android开源的测试工具 - [Square AssertJ](https://github.com/square/assertj-android) - [Robolectric](https://github.com/robolectric/robolectric) **安装** - 下载Android Studio - 下载gradle,我个人是把解压的gradle放置在C:\Users\ooo\.gradle\wrapper\dists\gradle-2.2.1-all\6dibv5rcnnqlfbq9klf8imrndn\gradle-2.2.1-all.zip,当然你可以放在任何你喜欢的位置,然后在AS的setting目录里面进行设置 - 点击SDK Manager下载相应的依赖[强烈建议读者安装VPN下载android的sdk和相关的服务,我使用的是曲径] - 导入程序代码 ### 截图 参考assets目录下面的apk ###TODO 会写一系列的博文,关于Square开源的各个项目,如果你有什么好的建议,可以直接给我说。 ### 最近看的东西 Guva is to java what Square is to Mobile(android&ios) and what curator is to zookeeper