摘要: 手机交互应用服务(电话 / 短信) 阅读全文
posted @ 2016-03-03 20:54 (•̀ω•́)y 阅读(272) 评论(0) 推荐(0) 编辑
摘要: private ProgressDialog mProgressDlg = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.a... 阅读全文
posted @ 2016-02-26 20:41 (•̀ω•́)y 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1.从当前的Activity传递数据到下一个Activity: (1)发送方(当前的Activity): (2)接收方(即将跳转到的Activity): 2.从当前Activity返回数据到前一个Activity: 使用startActivityForResult()函数跳转; 接收方: 在原来的A 阅读全文
posted @ 2016-02-26 19:10 (•̀ω•́)y 阅读(171) 评论(0) 推荐(0) 编辑
摘要: DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); String str = "宽:" + metrics.widthPixels + " 长:" + metrics.heightPixels; 阅读全文
posted @ 2016-02-26 18:40 (•̀ω•́)y 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://stackoverflow.com/questions/20087804/should-have-subtitle-controller-already-set-mediaplayer-error-android/20149754#20149754 This code is 阅读全文
posted @ 2016-01-26 21:51 (•̀ω•́)y 阅读(4405) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.linuxidc.com/Linux/2011-09/43205.htm 如果你的自定义ListViewItem中有Button或者Checkable的子类控件的话,那么默认focus是交给了子控件,而ListView的Item能被选中的基础是它能获取Focus,也就 阅读全文
posted @ 2016-01-25 21:43 (•̀ω•́)y 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.xuebuyuan.com/2231000.html 这个问题网上搜一搜发现帖子很多,但是博主试了几种好像没有说的那么好用 一. 比如给ViewPager设置长度,以增加缓存的Fragment数目。(不靠谱) 二. 滑出屏幕的时候存储加载的数据,createView的 阅读全文
posted @ 2016-01-25 16:50 (•̀ω•́)y 阅读(1858) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://blog.csdn.net/gaojinshan/article/details/17055511 我想在同一个界面中,使用两个GridView,两个GridView一起上下滚动;如果直接将两个GridView添加到同一个界面上,它们是各自滚动的。因此,我考虑使用SrollV 阅读全文
posted @ 2016-01-24 09:59 (•̀ω•́)y 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 1.问题描述: 如图,在生成apk文件时出现如下错误, 2.原因分析: 我在网上搜了很多类似的问题,但试了又试也没有解决。然后我想上次编译时都没有出错,应该是最近的操作导致的错误。 3.解决办法: 把assets文件夹里面文件名中包含中文的文件删除,错误消失~ 阅读全文
posted @ 2016-01-23 16:17 (•̀ω•́)y 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 内容来源:高成珍、钟元生《Android编程经典案例》学习笔记 表格布局——TableLayout 表格布局以行和列的方式来管理界面的布局,但并不能明确声明包含几行几列。可通过TableRow来增加行,然后再在其中添加其他控件 表格的常用属性: android:collapseClolumns 隐藏 阅读全文
posted @ 2016-01-16 11:23 (•̀ω•́)y 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.cnblogs.com/qianqianfy/archive/2009/07/08/1518974.html1. C#遍历指定文件夹中的所有文件 DirectoryInfo TheFolder=new DirectoryInfo(folderFullName);... 阅读全文
posted @ 2016-01-16 11:16 (•̀ω•́)y 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 最近使用TextView时想要实现里面的文字逐个显示的动画效果,就如同打字一样。 主要实现思想:新建一个TextView的派生类,先将要逐个显示的字符串保存变量 mOriginalStr 中,然后启动新线程,每隔一段时间使用 Handler 类对象的sendEmptyMessage(int what 阅读全文
posted @ 2016-01-16 00:15 (•̀ω•́)y 阅读(2667) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://blog.csdn.net/wuleihenbang/article/details/17126371 首先解释下这句话This Handler class should be static or leaks might occur,大致意思就是说:Handler类应该定义成 阅读全文
posted @ 2016-01-15 18:53 (•̀ω•́)y 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://www.jb51.net/article/31833.htm Android开发文档上专门有一小节解释这个问题。简单来说,Activity是负责与用户交互的最主要机制,任何“设置”(Configuration)的改变都可能对Activity的界面造成影响,这时系统会销毁并重建 阅读全文
posted @ 2016-01-13 23:43 (•̀ω•́)y 阅读(4819) 评论(0) 推荐(0) 编辑
摘要: 内容来源:高成珍、钟元生《Android编程经典案例解析》 SQLite 数据库是Android 中内嵌的轻量级关系型数据库,本质上只是一个文件。SQLite 内部只支持NULL,INTEGER, REAL,TEXT 和BLOB 这五种数据类型,在SQLite 中可以把各种类型的数据保存到任何字段中 阅读全文
posted @ 2015-12-30 23:25 (•̀ω•́)y 阅读(219) 评论(0) 推荐(0) 编辑
摘要: error opening trace file: No such file or directory (2) 阅读全文
posted @ 2015-12-25 22:01 (•̀ω•́)y 阅读(1796) 评论(0) 推荐(0) 编辑
摘要: WPF 取出richTextBox里面的内容,赋值给richTextBox,清空RichTextBox的方法,如何将一个String类型的字符串赋值给richTextBox,如何将richTextBox中的内容以rtf的格式完全取出,RichTextBox的操作: 阅读全文
posted @ 2015-12-24 12:42 (•̀ω•́)y 阅读(346) 评论(0) 推荐(0) 编辑
摘要: android中的 Toast 和 AlertDialog 阅读全文
posted @ 2015-12-22 10:11 (•̀ω•́)y 阅读(346) 评论(0) 推荐(0) 编辑
摘要: android:autoLink, android:ellipsize, android:textColor,android:gravity 和 android:layout_gravity的区别,5.android:padding 和 android:layout_margin 的区别 阅读全文
posted @ 2015-12-21 17:06 (•̀ω•́)y 阅读(359) 评论(0) 推荐(0) 编辑
摘要: Config path ‘C:\Users\Administrator\.AndroidStudio1.5\config’ is invalid. If you have modified the ‘idea.config.path’ property please make sure it is correct, otherwise please re-install the IDE. 阅读全文
posted @ 2015-12-15 09:29 (•̀ω•́)y 阅读(5208) 评论(0) 推荐(0) 编辑