摘要: 在实际的项目中,我们经常要得到当前屏幕的分辨率,进行机型适配,得到分辨率其实很简单,主要有两种方法。方法一:Display mDisplay = getWindowManager().getDefaultDisplay();int W = mDisplay.getWidth();int H = mD... 阅读全文
posted @ 2014-05-20 18:38 AZ_mxl 阅读(437) 评论(0) 推荐(0)
摘要: zxing github连接:https://github.com/zxing/zxing以下为修改方法Step 1: Add following lines to rotate data beforebuildLuminanceSource(..)indecode(byte[] data, int... 阅读全文
posted @ 2014-05-18 20:05 AZ_mxl 阅读(1599) 评论(0) 推荐(0)
摘要: 这个问题引发的原因最初的报错是:[2013-10-14 10:01:58 - XXX] The connection to adb is down, and a severe error has occured.[2013-10-14 10:01:58 - XXX] You must restart... 阅读全文
posted @ 2014-05-18 00:48 AZ_mxl 阅读(5860) 评论(0) 推荐(0)
摘要: cocos2d-x免费在线公开课:http://geek99.com/open1. C语言部分(全套):http://geek99.com/node/199http://geek99.com/node/10142. C++部分(全套):http://geek99.com/node/1047http://geek99.com/node/10683. Java 部分(全套):http://geek99.com/node/16654. Objective C 部分:http://geek99.com/node/1161http://geek99.com/node/11695. Android 部分: 阅读全文
posted @ 2014-03-30 21:45 AZ_mxl 阅读(313) 评论(0) 推荐(0)
摘要: 在以前版本的 Gmail 应用中,ActionBar 上有个刷新菜单,点击一下刷新菜单变成一个转圈的刷新标示动画图片。 之前实现该功能的时候都是使用一个类库RefreshActionItem 来实现的。RefreshActionItem 还支持一些扩展功能,功能比较丰富。今天无意中又发现一个简单的实现方式。如果您只需要一个刷新的效果,则可以考虑这种方法, 实现方式如下:1. 首先定义一个 Menu xml 文件:帮助12345678910112. 然后创建一个代表刷新进度的自定义 ProgressBar 布局文件 actionbar_indeterminate_progress.xml:帮助1 阅读全文
posted @ 2014-03-07 10:28 AZ_mxl 阅读(6564) 评论(0) 推荐(0)
摘要: 一、下载并安装openfire1、下载最新的openfire安装文件官方下载站点:http://www.igniterealtime.org/downloads/index.jsp#openfire openfire是服务器,下面还有一个spark,这个是一个XMPP协议通信聊天的CS的IM软件,... 阅读全文
posted @ 2014-03-05 17:25 AZ_mxl 阅读(30646) 评论(1) 推荐(2)
摘要: openfire登录管理控制提示:Login failed:make sure your username and password are correct and that you’re an admin or moderator解决方案如下:1.使用Mysql查看工具进入数据库,进入表“ofus... 阅读全文
posted @ 2014-03-04 22:31 AZ_mxl 阅读(4758) 评论(0) 推荐(0)
摘要: dimens.xml里写上三个变量:[java]view plaincopy16dp16px16sp读取这三个变量:[html]view plaincopyfloata1=getResources().getDimension(R.dimen.activity_vertical_margin1);inta2=getResources().getDimensionPixelOffset(R.dimen.activity_vertical_margin1);inta3=getResources().getDimensionPixelSize(R.dimen.activity_vertical_ma 阅读全文
posted @ 2014-02-27 22:51 AZ_mxl 阅读(6294) 评论(0) 推荐(1)
摘要: 自定义loading dialog --- 后背景透明 如果想设置后背景的透明度,则在backgroundDimEnabled为true的情况下设置以下属性 0.1 阅读全文
posted @ 2013-11-07 23:45 AZ_mxl 阅读(3762) 评论(0) 推荐(0)
摘要: android:scrollbarStyle可以定义滚动条的样式和位置,可选值有insideOverlay、insideInset、outsideOverlay、outsideInset四种。其中inside和outside分别表示是否在view的padding区域内,overlay和inset表示覆盖在view上或是插在view后面,所以四种值分别表示:insideOverlay:默认值,表示在padding区域内并且覆盖在view上insideInset:表示在padding区域内并且插入在view后面outsideOverlay:表示在padding区域外并且覆盖在view上,推荐这个o 阅读全文
posted @ 2013-09-25 10:35 AZ_mxl 阅读(672) 评论(0) 推荐(0)