Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
codeestX committed Sep 5, 2016
1 parent f9bea96 commit f70bb63
Show file tree
Hide file tree
Showing 31 changed files with 103 additions and 177 deletions.
22 changes: 0 additions & 22 deletions .idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/copyright/profiles_settings.xml

This file was deleted.

23 changes: 0 additions & 23 deletions .idea/gradle.xml

This file was deleted.

62 changes: 0 additions & 62 deletions .idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

32 changes: 22 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
#GeekNews

A pure reading App based on Material Design + MVP + RxJava + Retrofit + Dagger2 + Realm + Glide
GeekNews, A pure reading App based on Material Design + MVP + RxJava + Retrofit + Dagger2 + Realm + Glide

极客日报,一款纯粹的阅读App,基于Material Design + MVP + RxJava + Retrofit + Dagger2 + Realm + Glide

#Points
出于学习的目的做了这款Material Design风格的简洁的阅读应用,基本涵盖了当前Android端开发最常用的主流框架,阅读内容目前包括知乎日报、微信精选、干货集中营,知识、新闻、福利一网打尽,后期会持续更新,坚持在这个项目上实践最新的技术,也会争取拓展更多的阅读内容

本项目还在测试阶段,发现bug或有好的建议欢迎issue、email,如果感觉对你有帮助也欢迎点个star、fork,本项目仅做学习交流使用,请勿用于其他用途

###Preview

![](https://github.com/codeestX/GeekNews/raw/master/screenshots/part1.gif)      
![](https://github.com/codeestX/GeekNews/raw/master/screenshots/part2.gif)      
![](https://github.com/codeestX/GeekNews/raw/master/screenshots/part3.gif)

###Download APK


##Points

* 使用RxJava配合Retrofit2做网络请求
* 使用RxUtil对线程操作和网络请求结果处理做了封装
Expand All @@ -17,18 +30,18 @@ A pure reading App based on Material Design + MVP + RxJava + Retrofit + Dagger2
* 使用Dagger2将M层注入P层,将P层注入V层,无需new,直接调用对象
* 使用Realm做阅读记录、收藏记录的存储和查询
* 使用Glide做图片的处理和加载
* 使用Fragmentation简化Fragment的操作,还有Activity滑动返回
* 使用Fragmentation简化Fragment的操作
* 使用RecyclerView实现下拉刷新、上拉加载、侧滑删除、长按拖曳
* 使用WebView做阅览页,通过修改其配置达成各种需要的功能
* 使用原生的夜间模式、分享、反馈
* 包含搜索、收藏、检测更新(尚未实现)等功能

#Version
##Version

###V1.0.0
`1.提交第一版`

#Thanks
##Thanks

###API:
[知乎日报API](https://github.com/izzyleung/ZhihuDailyPurify/wiki/%E7%9F%A5%E4%B9%8E%E6%97%A5%E6%8A%A5-API-%E5%88%86%E6%9E%90)     
Expand All @@ -40,12 +53,12 @@ A pure reading App based on Material Design + MVP + RxJava + Retrofit + Dagger2

[知了日报](https://github.com/HotBitmapGG/RxZhiHu) 提供了部分设计思路

还有其他很多大神的类似作品
还参考了很多大神的类似作品,感谢大家的开源精神

###RES:
[iconfont](http://www.iconfont.cn/) 提供icon素材
[iconfont](http://www.iconfont.cn/) 提供了icon素材

[material UP](http://www.material.uplabs.com/) 提供Material Design风格的素材
[material UP](http://www.material.uplabs.com/) 提供了Material Design风格的素材

###LIB:
//ui
Expand Down Expand Up @@ -80,7 +93,6 @@ A pure reading App based on Material Design + MVP + RxJava + Retrofit + Dagger2
compile 'com.umeng.analytics:analytics:latest.integration'
compile 'com.orhanobut:logger:1.15'
compile 'me.yokeyword:fragmentation:0.7.9'
compile 'me.yokeyword:fragmentation-swipeback:0.7.9'
compile 'com.victor:lib:1.0.4'
compile 'com.prolificinteractive:material-calendarview:1.4.0'
compile 'net.opacapp:multiline-collapsingtoolbar:1.2.2'
Expand All @@ -94,7 +106,7 @@ A pure reading App based on Material Design + MVP + RxJava + Retrofit + Dagger2
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'`


#License
##License

Copyright (c) 2016 codeestX

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ android {
}

productFlavors {
huawei {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "huawei"]
google {
manifestPlaceholders = [UMENG_CHANNEL_VALUE: "google"]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void call(CommentBean commentBean) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand All @@ -57,7 +57,7 @@ public void call(CommentBean commentBean) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void call(DailyBeforeListBean dailyBeforeListBean) {
public void call(Throwable throwable) {
registerEvent();
LogUtil.d(throwable.toString());
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}});
addSubscrebe(rxSubscription);
}
Expand Down Expand Up @@ -127,7 +127,7 @@ public void call(DailyListBean dailyListBean) {
@Override
public void call(Throwable throwable) {
LogUtil.d(throwable.toString());
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand All @@ -148,7 +148,7 @@ public void call(DailyBeforeListBean dailyBeforeListBean) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void call(HotListBean dailyListBean) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void call(SectionListBean sectionListBean) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void call(ThemeChildListBean themeChildListBean) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void call(ThemeListBean themeListBean) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void call(List<WXItemBean> wxItemBeen) {
@Override
public void call(Throwable throwable) {
LogUtil.d(throwable.toString());
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand All @@ -81,7 +81,7 @@ public void call(List<WXItemBean> wxItemBeen) {
}, new Action1<Throwable>() {
@Override
public void call(Throwable throwable) {
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand All @@ -101,7 +101,7 @@ public void call(List<WXItemBean> wxItemBeen) {
@Override
public void call(Throwable throwable) {
LogUtil.d(throwable.toString());
mView.showError("数据加载失败");
mView.showError("数据加载失败ヽ(≧Д≦)ノ");
}
});
addSubscrebe(rxSubscription);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.codeest.geeknews.presenter.contract.GirlContract;
import com.codeest.geeknews.ui.gank.activity.GirlDetailActivity;
import com.codeest.geeknews.ui.gank.adapter.GirlAdapter;
import com.codeest.geeknews.util.SnackbarUtil;
import com.codeest.geeknews.util.ToastUtil;
import com.victor.loading.rotate.RotateLoading;

Expand Down Expand Up @@ -97,7 +98,7 @@ public void onItemClickListener(int position, View shareView) {
@Override
public void showError(String msg) {
viewLoading.stop();
ToastUtil.shortShow(msg);
SnackbarUtil.showShort(getActivity().getWindow().getDecorView(),msg);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.codeest.geeknews.ui.gank.activity.TechDetailActivity;
import com.codeest.geeknews.ui.gank.adapter.TechAdapter;
import com.codeest.geeknews.util.DateUtil;
import com.codeest.geeknews.util.SnackbarUtil;
import com.codeest.geeknews.util.ToastUtil;
import com.victor.loading.rotate.RotateLoading;

Expand Down Expand Up @@ -109,7 +110,7 @@ public void showError(String msg) {
} else {
viewLoading.stop();
}
ToastUtil.shortShow(msg);
SnackbarUtil.showShort(getActivity().getWindow().getDecorView(),msg);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.codeest.geeknews.presenter.contract.LikeContract;
import com.codeest.geeknews.ui.main.adapter.LikeAdapter;
import com.codeest.geeknews.util.LogUtil;
import com.codeest.geeknews.util.SnackbarUtil;
import com.codeest.geeknews.util.ToastUtil;
import com.codeest.geeknews.widget.DefaultItemTouchHelpCallback;

Expand Down Expand Up @@ -88,7 +89,7 @@ public void onResume() {

@Override
public void showError(String msg) {
ToastUtil.shortShow(msg);
SnackbarUtil.showShort(getActivity().getWindow().getDecorView(),msg);
}

@Override
Expand Down
Loading

0 comments on commit f70bb63

Please sign in to comment.