smiling1990

博客园 首页 联系 订阅 管理

2016年10月14日

摘要: Android UI WebView的使用: 布局: <?xml version="1.0" encoding="utf-8"?><WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_ 阅读全文
posted @ 2016-10-14 09:11 smiling1990 阅读(173) 评论(0) 推荐(0) 编辑

摘要: RollPagerView的用法: Android Studio 导包: compile 'com.jude:rollviewpager:1.4.5' 布局: <com.jude.rollviewpager.RollPagerView android:layout_width="match_pare 阅读全文
posted @ 2016-10-14 09:08 smiling1990 阅读(406) 评论(0) 推荐(0) 编辑

摘要: Github:https://github.com/drakeet/MaterialDialog Android Studio 导包: compile 'me.drakeet.materialdialog:library:1.3.1' 程序: MaterialDialog mMaterialDial 阅读全文
posted @ 2016-10-14 09:04 smiling1990 阅读(2185) 评论(0) 推荐(0) 编辑

2016年10月11日

摘要: SharedPreferences的工具类,使用起来方便、快捷;上代码:import android.content.Context;import android.content.SharedPreferences;/** * SharedPreferences的一个工具类,调用setData就能保 阅读全文
posted @ 2016-10-11 10:44 smiling1990 阅读(150) 评论(0) 推荐(0) 编辑

2016年6月5日

摘要: RecycleView:是Android L版本中新添加的一个用来取代ListView的SDK,它的灵活性与可替代性比listview更好。 RecyclerView与ListView原理是类似的:都是仅仅维护少量的View并且可以展示大量的数据集。RecyclerView:1、item的排列方式: 阅读全文
posted @ 2016-06-05 20:54 smiling1990 阅读(837) 评论(0) 推荐(0) 编辑

摘要: 例如一个小项目:实现单词本的添加单词等功能 功能:不同的方式实现跨app之间数据的暴露与接收 暴露端app:实现单词的添加(Word、Translate),增删改查; 接收端app:模糊查询,得到暴露端的数据。 暴露端主页及布局: 1、布局: 主页布局:ListView、TextView(empty 阅读全文
posted @ 2016-06-05 13:04 smiling1990 阅读(1099) 评论(0) 推荐(0) 编辑