Skip to content
android 仿网易新闻首页框架
Branch: master
Clone or download
Latest commit 8629549 Sep 4, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libs init Sep 3, 2014
res init Sep 3, 2014
src/com/leslie/androidframework init Sep 3, 2014
.classpath init Sep 3, 2014
.gitignore init Sep 3, 2014
.project init Sep 3, 2014
AndroidManifest.xml init Sep 3, 2014
README.md Update README.md Sep 4, 2014
ic_launcher-web.png init Sep 3, 2014
proguard-project.txt init Sep 3, 2014
project.properties init Sep 3, 2014

README.md

实现思路很简单左侧栏目是一个一个的 Fragment 的,点击时动态替换各个 Fragment 到当前 Activity 中。

Fragment fragment = (Fragment) cls.newInstance();
// Insert the fragment by replacing any existing fragment
FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.fragment_content, fragment, tag).commit();

依赖 SliddingMenu ViewPagerIndicator

首页布局:

1 SliddingMenu + ViewPagerIndicator

2 JSON 解析 FastJson

3 网络请求 Volley

4 sqlite 数据库简单封装,主要处理数据库版本升级问题

5 微信、微博 API 简单封装

6 代码混淆

You can’t perform that action at this time.