Android异步消息处理机制
摘要:安卓子线程无法直接更改UI,所以需要异步消息处理机制来解决
阅读全文
Android数据库 — — —查询数据
摘要:package com.example.datebasetest;import android.content.ContentValues;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;imp
阅读全文
Android 数据库管理— — —删除数据
摘要:package com.example.datebasetest;import android.content.ContentValues;import android.database.sqlite.SQLiteDatabase;import android.support.v7.app.AppC
阅读全文
Android 数据库管理— — —更新数据
摘要:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and
阅读全文
Android 数据库管理— — —添加数据
摘要:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and
阅读全文
Android 数据库管理— — —升级数据库
摘要:package com.example.databasetest;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteDat
阅读全文
Android 数据库管理— — —创建数据库
摘要:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" and
阅读全文
Android数据持久化技术 — — —SharedPreferences
摘要:SharedPreferences是使用键值对的方式来存储数据。 要想使用SharedPreferences来存储数据,必须获取SharedPreferences对象,获取SharedPreferences对象的方法。 Context.getSharedPreferences( ) Activity
阅读全文
Android数据持久化技术 — — —文件存储
摘要:文件保存 package com.example.datastroredtest;import android.app.Activity;import android.os.Bundle;import android.widget.EditText;import java.io.BufferedWr
阅读全文
Android — — —动态添加碎片
摘要:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:
阅读全文
Android平板电脑开发— — —碎片
摘要:碎片是一种可以嵌入在活动中的UI片段,它能让程序更加合理与充分地使用大屏幕的空间,碎片通常都是在平板电脑开发中才会使用 简单实例 左碎片布局 <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schem
阅读全文
自定义控件
摘要:自定义标题控件,使标题控件上的按钮有了触发事件 package com.example.uicustomviews;import android.app.Activity;import android.content.Context;import android.util.AttributeSet;
阅读全文
引入布局
摘要:引入的标题布局title.xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="h
阅读全文