随笔分类 -  Android

摘要:An acceptable solution to convert immutable bitmap to a mutable bitmap ,using RadomAccessFile to save the source bitmap on disk(no ram memory) and the 阅读全文
posted @ 2017-03-25 19:32 David Young 阅读(351) 评论(0) 推荐(0)
摘要:1. reference:参考某一资源ID。 (1)属性定义: <declare-styleable name = "名称"> <attr name = "background" format = "reference" /> </declare-styleable> (2)属性使用: <Image 阅读全文
posted @ 2016-07-08 00:17 David Young 阅读(1551) 评论(0) 推荐(0)
摘要:@号 &#064; :号 &#058; 空格 &#160; ...省略号 &#8230; 以下为常见的ASCII十进制交换编码:(注:"&#xxx;"为编码,后面紧跟的--> <--箭头中间为代表的字符) &#032;--> <-- 这边是空格 &#033;-->!<-- &#034;-->"<-- 阅读全文
posted @ 2016-07-08 00:09 David Young 阅读(553) 评论(0) 推荐(0)
摘要:Android xml资源文件中Shape的属性: solid 描述:内部填充 属性:android:color 填充颜色 size 描述:大小 属性: android:width 宽 android:height 高 gradient 描述:渐变色 属性: android:startColor渐变 阅读全文
posted @ 2016-07-08 00:05 David Young 阅读(9593) 评论(0) 推荐(0)
摘要:android:inputType="none" android:inputType="text" android:inputType="textCapCharacters" 字母大写 android:inputType="textCapWords" 首字母大写 android:inputType= 阅读全文
posted @ 2016-07-08 00:02 David Young 阅读(351) 评论(0) 推荐(0)
摘要:SQLite has limited ALTER TABLE support that you can use to add a column to the end of a table or to change the name of a table. If you want to make mo 阅读全文
posted @ 2016-07-08 00:00 David Young 阅读(3450) 评论(0) 推荐(0)
摘要:有时开启多个Eclipse之后,连接真机调试程序时在Controls控制台里面会出现Launch error: Failed to connect to remote VM [duplicate] ,DDMS输出里面会报con't bind to local 86XX 或者87xx debugger... 阅读全文
posted @ 2016-01-08 10:10 David Young 阅读(1606) 评论(0) 推荐(0)
摘要:1.在Eclipse中修改Android应用程序包名时,需要修改的几个地方(按照修改顺序):1)右键创建应用程序时src中自动添加的主包名,即与配置文件中包名相同的那个包,refactor->rename,注意勾选rename subpackages ,或者快捷键alt+shift+r2)在配置文件... 阅读全文
posted @ 2015-10-18 10:40 David Young 阅读(1313) 评论(0) 推荐(0)
摘要:前言:最近在Android项目中需要在活动中实现多页面切换的功能,第一次是实现的过程中,是让Activity同时去加载三个界面的,通过点击tab按钮对页面设置隐藏和显示,实现页面切换效果,但是后面发现这种实现方式其实存在很多问题:首先,同时去加载三个页面,切换Activity的速度会变慢,尤其是布局... 阅读全文
posted @ 2015-07-17 22:38 David Young 阅读(2629) 评论(0) 推荐(0)
摘要:package com.hujl.util;import android.content.Context; public class DensityUtil { /** * 根据手机的分辨率从 dp 的单位 转成为 px(像素) */ public ... 阅读全文
posted @ 2015-04-23 18:57 David Young 阅读(350) 评论(0) 推荐(0)
摘要:[22]遇到query cannot be resolved to a variable错误,解决:1.Java里面定义的变量不能跟系统包里面的关键字相同(大小写不同也不行),系统包里面有个Query,把query改 2.变量在方法中是否被定义为局部变量,从而不能作为方法的返回值成其他名字即可[23... 阅读全文
posted @ 2015-04-23 18:53 David Young 阅读(843) 评论(0) 推荐(0)
摘要:在百度地图开发过程中,有可能会遇到一些关于坐标转换的问题,下面就把自己在项目过程中遇到的一些转换方法以及网上搜集到的一些方法写下来,以备不时之需1.国测局坐标转百度坐标/** * 国测局转换百度经纬度 * @param point * @return ... 阅读全文
posted @ 2015-04-23 18:49 David Young 阅读(1728) 评论(0) 推荐(0)
摘要:作用域 功能 快捷键 全局 单步返回 F7全局 单步跳过 F6全局 单步跳入 F5全局 单步跳入选择 Ctrl+F5全局 调试上次启动 F11全局 继续 F8全局 使用过滤器单步执行 Shift+F5全局 添加/去除断点 全局 显示 Ctrl+D全局 运行上次启动 Ctrl+F11全局 运行至行 C... 阅读全文
posted @ 2015-04-23 18:25 David Young 阅读(28455) 评论(1) 推荐(1)
摘要:Alt+/ :内容辅助Ctrl+Shift+O:自动补充import Package;Ctrl+L:转至某行Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交换位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当... 阅读全文
posted @ 2015-04-23 18:22 David Young 阅读(426) 评论(0) 推荐(0)