预期任务量:40h;目前已花时间:4h;剩余时间:33h。
做了一个标签栏:
遇到问题:点击标题栏按钮会发生变化,但是页面跳转有问题。
SQLite数据库:
package com.example.zbytexttwo; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class dbHelper extends SQLiteOpenHelper { public static final String TB_NAME = "bills"; public dbHelper(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); // TODO Auto-generated constructor stub } @Override public void onCreate(SQLiteDatabase db) { // TODO Auto-generated method stub db.execSQL("CREATE TABLE IF NOT EXISTS " + TB_NAME + " ( _id integer primary key autoincrement," + "leixing varchar," + "riqi varchar,"+ "jine integer," + "beizhu varchar"+ ") "); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method stub db.execSQL("DROP TABLE IF EXISTS " + TB_NAME); onCreate(db); } }