- 博客(9)
- 收藏
- 关注
原创 浏览器加载网络图片
一.activity_main.xml布局文件 LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layo
2017-06-16 19:11:28
555
原创 案例——新闻客户端
1.创建程序(activity_mian.xml) LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andro
2017-06-16 09:54:47
413
原创 有序广播
一·编写用户交互界面 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_heig
2017-06-15 20:43:17
276
原创 商品展示
一:activity_main.xml 创建一个Containers下的ListView条目 二:创建布局文件item.xml xml version="1.0" encoding="utf-8"?> xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="hori
2017-06-15 13:09:17
326
原创 SharedPrefences
一.存储方式 SharedPreferences 中存储的数据是以键值对的形式保存在XML文件中。 二.获取实例对象的方法 1.通过context.getSharedPreferences(Stringname,int mode)获取 2.Activity中的getPreferences()方法 3.PrefencesManager类中的getDefauHShar
2017-04-10 22:56:26
500
原创 Activity四种启动模式的特点
一.Activity四种启动模式的特点 1.standard模式 Activity默认的启动模式,依次入栈出栈,满足"先进后出"的原则。这种模式下,可以有多个相同的实例,也允许多个相同Activity叠加 2.singleTop模式 当启动的Activity已经位于栈顶,则直接使用它不创建新的实例。如果没有则创建新的实例。 3.singleTask模式
2017-03-31 18:38:27
3167
原创 小宝宝打装备
1.创建对应布局activity_main.xml Android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="
2017-03-29 21:37:24
446
原创 手机信息页面设置
创建一个线性布局 将图片导入drawable文件中 创建drawable-en-rUS,drawable-zh-rCN,并创建values-zh-rCN、values-en-rUS文件夹 并在values-zh-rCN,values-en-rUS编写代码 修改成国际化 在线性布局中创建
2017-03-12 14:59:20
428
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人