上一页 1 ··· 9 10 11 12 13 14 下一页

2014年11月11日

摘要: 1 /** 2 * 获取父控件的位置y-popwindow的高度 = 应该显示的y坐标. x这里设置为center 不刻意指定坐标 注意:控件坐标永远是 左上角坐标! 3 * 4 * @param parent 5 */ 6 public v... 阅读全文
posted @ 2014-11-11 10:31 屌丝迷途 阅读(577) 评论(0) 推荐(0) 编辑

2014年11月6日

摘要: PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); boolean screen = pm.isScreenOn(); 阅读全文
posted @ 2014-11-06 14:13 屌丝迷途 阅读(710) 评论(0) 推荐(0) 编辑

2014年11月5日

摘要: 1 Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); 2 Uri uri = Uri.fromFile(new File("/sdcard/image.jpg")); 3 intent.setData(uri); 4... 阅读全文
posted @ 2014-11-05 14:05 屌丝迷途 阅读(314) 评论(0) 推荐(0) 编辑

2014年10月30日

摘要: package com.example.demoactivity;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.view.View;import androi... 阅读全文
posted @ 2014-10-30 10:48 屌丝迷途 阅读(1441) 评论(0) 推荐(0) 编辑

2014年10月29日

摘要: 最近在看一个bug,系统切换语言后,本来退到后台的音乐,会在通知栏上显示通知。为了解决这个bug,我学习了下android的语言切换流程,也参考了大量其他人的资料。(主要参考了http://blog.csdn.net/wqhjfree/article/details/8244520)在这里我将自... 阅读全文
posted @ 2014-10-29 10:57 屌丝迷途 阅读(648) 评论(0) 推荐(1) 编辑

2014年10月28日

摘要: /** * 跳转到对应activity */ public void toActivity(Context context,String fullName) { if (className != null && className.length() > 0) { ... 阅读全文
posted @ 2014-10-28 14:28 屌丝迷途 阅读(1782) 评论(0) 推荐(0) 编辑

2014年10月27日

摘要: shape用于设定形状,可以在selector,layout等里面使用,有6个子标签,各属性如下: 1 2 3 4 5 11 12 13 23 24 25 30 31 32 35 36 ... 阅读全文
posted @ 2014-10-27 15:08 屌丝迷途 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 如果您在Activity中定义了一个内部Handler类,如下代码:public class MainActivity extends Activity {private Handler mHandler = new Handler() {@Overridepublic void handleMes... 阅读全文
posted @ 2014-10-27 11:37 屌丝迷途 阅读(185) 评论(0) 推荐(0) 编辑

2014年10月23日

摘要: /** * 检测是否存在相机硬件 * @param context * @return */ public boolean checkCameraHardware(Context context) { if (context.getPackageM... 阅读全文
posted @ 2014-10-23 10:19 屌丝迷途 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1、Javadoc command:输入 [jdk路径]\javadoc.exe2、Extra Javadoc options输入-windowtitle '标题'-encoding UTF-8 -charset UTF-8-locale en_US 阅读全文
posted @ 2014-10-23 10:03 屌丝迷途 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 下一页

导航