732003684

导航

2013年1月14日 #

自定义日历

摘要: 效果如图一、布局 main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" & 阅读全文

posted @ 2013-01-14 10:51 732003684 阅读(1890) 评论(0) 推荐(0) 编辑

2013年1月11日 #

自定义dialog的样式并比较日期

摘要: <style name="myDialogTheme" parent="android:style/Theme.Dialog"> <item name="android:windowNoTitle">true</item> </style>1、布局main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schema 阅读全文

posted @ 2013-01-11 18:39 732003684 阅读(1425) 评论(0) 推荐(0) 编辑

2013年1月9日 #

生成桌面插件

摘要: package org.app.qqmusicplayer;import android.app.PendingIntent;import android.appwidget.AppWidgetManager;import android.appwidget.AppWidgetProvider;import android.content.ComponentName;import android.content.Context;import android.content.Intent;import android.util.Log;import android.widget.RemoteVi 阅读全文

posted @ 2013-01-09 17:39 732003684 阅读(309) 评论(0) 推荐(0) 编辑

网络下载图片并显示代码片段

摘要: 一、DowdloadImagepackage org.app.netmusic.tool;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.InputStream;import java.io.OutputStream;import java.net.HttpURLConnection;import java.net.URL;import java.util.Collectio 阅读全文

posted @ 2013-01-09 15:26 732003684 阅读(507) 评论(0) 推荐(0) 编辑

一个数据库操作片段

摘要: 1、自定义DBHelperpackage org.app.qqmusic.tool;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;import android.database.sqlite.SQLiteDatabase.CursorFactory;publi 阅读全文

posted @ 2013-01-09 15:08 732003684 阅读(404) 评论(0) 推荐(0) 编辑

2013年1月8日 #

通知栏设置

摘要: 一般在service里设置 public static NotificationManager nm;private String _title; private String _artist;/** * 当开始播放时,通知栏显示当前播放信息 */ private void ShowNotifcation() { nm = (NotificationManager) getApplicationContext().getSystemService( Context.NOTIFICATION_SERVICE);//获取通知栏... 阅读全文

posted @ 2013-01-08 16:54 732003684 阅读(433) 评论(0) 推荐(0) 编辑

Tabhost 和 viewpager的结合使用

摘要: 一:布局<?xml version="1.0" encoding="utf-8"?><TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent" android:orienta 阅读全文

posted @ 2013-01-08 10:55 732003684 阅读(459) 评论(0) 推荐(0) 编辑

2013年1月7日 #

viewpager切换时底下的背景图标动画切换

摘要: 一:布局<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/applyHome" android:layout_width="fill_parent" android:layout_height="fill_parent" android:backgro 阅读全文

posted @ 2013-01-07 17:12 732003684 阅读(384) 评论(0) 推荐(0) 编辑

几种tabhost的总结(3)

摘要: activity动画切换效果一;布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" 阅读全文

posted @ 2013-01-07 16:03 732003684 阅读(338) 评论(0) 推荐(0) 编辑

几种tabhost的总结(2)

摘要: 底背景图标动画切换一。布局<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > 阅读全文

posted @ 2013-01-07 15:02 732003684 阅读(254) 评论(0) 推荐(0) 编辑