基于Android平台的手机电子书阅读器代码
- 格式:doc
- 大小:146.50 KB
- 文档页数:28
基于Android平台的手机电子书阅读器代码package com.lrc.view;
/**
* 书籍阅读
*/
import java.io.IOException;
import ng.reflect.Array;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.lrc.R;
import com.lrc.bll.BookPageFactory;
import com.lrc.bll.DbDataOperation;
import com.lrc.bll.DbTags;
import com.lrc.bll.PageWidget;
import com.lrc.util.ArrayUtil;
import com.lrc.util.BgUtil;
import com.lrc.util.MathUtil;
import com.lrc.util.TimeUtil;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import .Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.Settings;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import youtParams;
import android.view.Window;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener; import android.widget.EditText;
import android.widget.GridView;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.PopupWindow;
import android.widget.ProgressBar;
import android.widget.SeekBar;
import android.widget.SimpleAdapter;
import android.widget.TextView;
import android.widget.SeekBar.OnSeekBarChangeListener; import android.widget.Toast;
public class BookReadActivity extends Activity
{
private PageWidget mPageWidget;
Bitmap mCurPageBitmap, mNextPageBitmap;
Canvas mCurPageCanvas, mNextPageCanvas;
public static BookPageFactory pagefactory;
int screenWidth ,screenHeight;
int bookId;
String bookPath,bookName,bookProgress;
private int bookBeginPosition;
//db
private ContentResolver resolver;
//tabMenu
public final static int TITLE_USING_OFTEN = 0;
public final static int TITLE_TOOLS = 1;
public final static int MENU_FONT_SIZE = 0;