- 博客(14)
- 收藏
- 关注
原创 AppWidget,及其与广播的相关处理
1.什么叫AppWidget?既是手机桌面放置的控件,shortcuts是快捷方式2.AppWidgetProviderInfo对象是为AppWiget提供元数据,包括布局更新频率等数据,被定义在xml文件中3.在res下新建个XML文件夹,下新建example_appwidget_info.xml文件 xmlns:android="http://schemas.andro
2012-03-29 13:21:32 523
原创 Handler的使用,如何使得handler处理的线程是开启的新线程
http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:layout_w
2012-03-28 17:01:17 790
原创 ExpandableListActivity的使用和SimpleExpandableListAdapter的使用
main.xml文件http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >
2012-03-22 15:33:35 802 1
原创 AutoCompleteTextViewActivity自动完成文本框
xml文件·1..main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > and
2012-03-22 10:05:41 465
原创 调用系统的DatePickerDialog,TimePickerDialog
主要实现调用设置的一些使用图1 DatePickerDialog,TimePickerDialog无需xml布局 图2图3图4主要是开始时调用默认为图1,3所示的时间,设置后,下次打开要是你现在设置的时间 import android.app.Activity;import android.app.DatePickerDialog;import andr
2012-03-21 19:20:16 678
原创 Gallery循环拖动
main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:la
2012-03-19 11:07:28 627
原创 sqlite db文件的复制至sdcard
public class ExportDatabaseTask extends AsyncTask { private Context mContext; private final ProgressDialog dialog; public ExportDatabaseTask(Context context){ this.mConte
2012-03-14 14:07:26 994
原创 处理图像倒影问题
main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:la
2012-03-14 11:00:56 855
原创 手机设置的亮度调节功能
main.xml http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > androi
2012-03-13 15:36:47 1597
原创 如何在Activity中调用系统的返回功能
1.本人还未解决,求高手指点@Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub return super.onKeyDown(keyCode, event); }参数keyCode可以是KeyEvent event
2012-03-07 14:53:29 351
原创 TestView的autoLink属性和跑马灯marquee的属性
1.TextView autoLink属性TextView也支持电话和email超链接,当我们设置android:autoLink="phone"的时候,文本里的电话就会变成蓝色超链接形式,点击就会打开拨号界面等待你按通话键拨号,email也是同理。http://schemas.android.com/apk/res/android" android:layout_widt
2012-03-05 17:19:26 826
原创 Textwatcher和SQLite,ListView集合的基本用法或许有用
两个xml文件main.xml xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_pare
2012-03-05 13:53:30 790
原创 自己写个继承于View(textview或其他的)的类,便于自己特定 要求
main.xmlhttp://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > android:id
2012-03-05 13:31:24 528
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人