10 2016 档案
摘要:1、布局文件中添加ImageView <ImageView android:id="@+id/iv_fan" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@d
阅读全文
摘要:Android播放语言功能的实现 需要用到的类文件TextToSpeech,此类可以实现播放语言的功能 支持播放的语言1、英语 2、法语 3、德语 4、意语 5、西班牙语 1、实例化此类,添加上下文对象并且提供OnInitListener接口 TextToSpeech tts = new TextT
阅读全文
摘要:Time t = new Time();//实例化Time类 t.setToNow();//取得当前的系统时间 int month = t.month;//获取月 int year = t.year;//获取年 int minute = t.minute;//获取分钟 int date = t.mo
阅读全文
摘要:1、创建SQLite数据库 需要自己创建一个类来继承SQLiteOpenHelper类 SQLiteOpenHelper类是一个创建SQLite数据库的辅助类 继承此类的时候需要重写三个方法 public dbHelper(Context context, String name, CursorFa
阅读全文
摘要:Integer[] mImage = { R.color.burlywood, R.color.aquamarine, R.color.blueviolet, R.color.whitesmoke, R.color.tomato, R.color.peachpuff, R.color.mediump
阅读全文
摘要:<?xml version="1.0" encoding="utf-8"?> <resources> <color name="white">#FFFFFF</color><!--白色 --> <color name="ivory">#FFFFF0</color><!--象牙色 --> <color
阅读全文
摘要:添加GridView的步骤实际上和ListView差不多 1、在主界面添加GridView控件 <GridView android:id="@+id/gridView1" android:layout_width="match_parent" android:layout_height="wrap_
阅读全文