码迷,mamicode.com
首页 > 移动开发
Android fill_parent、wrap_content和match_parent的区别
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:移动开发   时间:2014-08-09 11:25:07    阅读次数:215
Android:Layout_weight的深刻理解
看下面代码:运行结果是:看上面代码:只有Button2使用了Layout_weight属性,并赋值为了1,而Button1和Button3没有设置Layout_weight这个属性,根据API,可知,他们默认是0下面我就来讲,Layout_weight这个属性的真正的意思:Android系统先按照你...
分类:移动开发   时间:2014-08-09 11:23:47    阅读次数:347
JS实现移动层
在网上搜了很多实现移动层的代码,体验都不太好,于是自己写了,贴在这里先。html: JS: 1 /** 2 * _TT 3 * version:0.0.1 4 * author:taozhiwork@foxmail.com 5 */ ...
分类:移动开发   时间:2014-08-09 11:17:17    阅读次数:298
Android APK反编译详解
这段时间在学Android应用开发,在想既然是用Java开发的应该很好反编译从而得到源代码吧,google了一下,确实很简单,以下是我的实践过程。在此郑重声明,贴出来的目的不是为了去破解人家的软件,完全是一种学习的态度,不过好像通过这种方式也可以去汉化一些外国软件。本文Android反编译教程,测试...
分类:移动开发   时间:2014-08-09 11:16:57    阅读次数:287
Android开发环境搭建
NO.1JDK的下载与安装 其实安装JRE就可以做开发了,不过更好的应该是安装一个JDK。 http://www.oracle.com/technetwork/java/javase/downloads/index.htmlNO.2下载ADT-Bundle for Windows 当然,如...
分类:移动开发   时间:2014-08-09 11:14:27    阅读次数:335
【Android的从零单排开发日记】之入门篇(四)——Android四大组件之Activity
在Android中,无论是开发者还是用户,接触最多的就算是Activity。它是Android中最复杂、最核心的组件。Activity组件是负责与用户进行交互的组件,它的设计理念在很多方面都和Web页面类似。当然,这种相似性主要体现在设计思想上。在具体实现方面,Android的Activity组件有...
分类:移动开发   时间:2014-08-09 11:13:47    阅读次数:304
android 细节之 旋转动画
Flip Animation for Android: 最近项目中用到了一个小动画,让物体实现一定的3D旋转效果,现记录如下: public class FlipAnimation extends Animation { private Camera mCamera; private View mFromView; private View mToVi...
分类:移动开发   时间:2014-08-09 04:56:27    阅读次数:281
nagios借助check_hpasm插件监控惠普服务器硬件信息(未成)
nagios借助check_hpasm插件监控惠普服务器硬件信息:http://labs.consol.de/wp-content/uploads/2011/10/check_hpasm-4.3.tar.gz被监控端:$sudotarzxfvcheck_hpasm-4.3.tar.gz$cdcheck_hpasm$./configure--enable-hpacucli--enable-perfdata--enable-extendedinfo$sudomake$su..
分类:移动开发   时间:2014-08-09 02:50:08    阅读次数:346
Android学习路线(十三)Activity生命周期——停止和恢复(Pausing and Resuming )一个Activity
During normal app use, the foreground activity is sometimes obstructed by other visual components that cause the activity to pause. For example, when a semi-transparent activity opens (such as one in the style of a dialog), the previous activity pauses. As...
分类:移动开发   时间:2014-08-09 02:36:37    阅读次数:366
Android学习路线(十四)Activity生命周期——停止和重启(Stopping and Restarting)一个Activity
Properly stopping and restarting your activity is an important process in the activity lifecycle that ensures your users perceive that your app is always alive and doesn't lose their progress. There are a few of key scenarios in which your activity is stop...
分类:移动开发   时间:2014-08-09 02:36:17    阅读次数:496
Android学习路线(十五)Activity生命周期——重新创建(Recreating)一个Activity
There are a few scenarios in which your activity is destroyed due to normal app behavior, such as when the user presses the Back button or your activity signals its own destruction by calling finish(). The system may also destroy your activity if it's curr...
分类:移动开发   时间:2014-08-09 02:35:56    阅读次数:492
IOS常用的第三方开发库
开发几个常用的开源类库及下载地址:1.jsonjson编码解码2.GTMBase64base64编码解码3.TouchXMLxml解析4.SFHFKeychainUtils安全保存用户密码到keychain中5.MBProgressHUD很棒的一个加载等待特效框架6.ASIHTTPRequestht...
分类:移动开发   时间:2014-08-09 02:34:26    阅读次数:311
Android技术16:编写Android中直接可运行的二进制文件
我们都知道Android中所有应用程序都运行在Android的Dalvik虚拟机上,一般程序不直接与操作系统打交道,即便调用底层的方法也通过JNI技术。不过我们可以直接使用C语言编写二进制文件,直接在底层运行。下面演示其步骤。1.安装下载编译器和链接器软件.Sourcery G++ Lite E.....
分类:移动开发   时间:2014-08-09 02:28:16    阅读次数:323
iOS开发拓展篇—音乐的播放
iOS开发拓展篇—音乐的播放一、简单说明 音乐播放用到一个叫做AVAudioPlayer的类,这个类可以用于播放手机本地的音乐文件。注意: (1)该类(AVAudioPlayer)只能用于播放本地音频。 (2)时间比较短的(称之为音效)使用AudioServicesCreateSystemSo...
分类:移动开发   时间:2014-08-09 02:27:06    阅读次数:412
IOS_反射
//// PJReflect.m// 新浪微博//// Created by pj on 14-8-8.// Copyright (c) 2014年 pj. All rights reserved.//#import "PJReflect.h"#import "PJFiled.h"#impo...
分类:移动开发   时间:2014-08-09 02:26:37    阅读次数:291
Android系统简介(上):历史渊源
上个月,看到微信的一系列文章,讲到Linux的鼻祖-李纳斯的传记《Just for Fun》, 其人神乎其能, 其人生过程非常有趣,值得每个程序员细细品味。 而实际上,对我而已,虽然做软件开发很多年,但是对Linux非常不熟悉,仅仅听过几个名词而已。 没有用过Linux? 几乎不可能,全球智能手机中...
分类:移动开发   时间:2014-08-09 02:26:26    阅读次数:366
Android技术17:Android应用程序中执行二进制命令
Android系统底层为Liunx内核,内核中有大量的可执行的二进制文件,system/bin目录下面,如下图我们都知道在Linux命令窗口中可以执行上述命令,但是在Android应用程序中是如何调用该命令呢?1.获取当前RuntimeRuntime.getRuntime();2.执行命令例如执行p...
分类:移动开发   时间:2014-08-09 02:26:06    阅读次数:376
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!