之前分享了机器人陪聊和新闻游戏及去广告,现在来聊聊【小萌伴】的"段子与趣图"部分...
这一模块经过的改版最多,最初是利用聚合数据中的“笑话”api进行开发,后来改为使用umeng开源的社区sdk进行开发、并自定义了整套社区UI(包含登录、主页、发帖、浏览、板块、板块主页、收藏、转载、热门、关注、评论、点赞等),再之后umeng社区停止维护并下线、改用其他开源数据api取代、并自定义了UI显示(仅提供浏览及收藏),最后抓取并导入一些笑话数据到Bmob、利用Bmob作为后台、解决开源数据api的调用次数限制问题。
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.e7yoo.e7.community.ListFragment" >
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/list_sr_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:layout_marginLeft="@dimen/space_3x"
android:layout_marginRight="@dimen/space_3x">
<android.support.v7.widget.RecyclerView
android:id="@+id/list_rv"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
</FrameLayout>
先占个坑,后面慢慢补...☺
![9166166-931fd471780b7e64.jpg](https://i-blog.csdnimg.cn/blog_migrate/8c72561e15bc8df2ec6d15d987b1204e.webp?x-image-process=image/format,png)
IT老五(it-lao5):关注公众号,一起源创,一起学习!