Android系统使用两个普通属性:尺寸和密度,来对设备屏幕进行分类。你需要先预测你的应用将会在什么样屏幕的设备上安装,包括屏幕尺寸和密度。这样的话,你就需要提供一些可选的资源类让你的应用在不同屏幕的设备上有最佳的展示。...
分类:
移动开发 时间:
2014-08-13 01:10:15
阅读次数:
256
作者:nuanyangyang标题: Java学习路线图(整理中,欢迎纠正)发信站: 北邮人论坛 (Mon Aug 11 19:28:16 2014), 站内【以下肯定是不完整的列表,欢迎补充】Java是一个通用的编程语言,其实可以干很多事,怎么学Java就看怎么用了。但有一些一般的步骤:1. 熟悉...
分类:
编程语言 时间:
2014-08-12 21:49:04
阅读次数:
256
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
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
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
当一个用户进入,退出,再次进入你的应用时,你的应用中的Activity 会在它的生命周期的各个状态下切换。例如,当你的activity第一次启动,它出现在系统的前方接受用户的焦点。在这个过程中,Android系统调用了一系列的生命周期方法来设置UI和其他组件。如果用户执行了一个操作,启动了另一个activity或者切换到其它应用中,你的activity会移动到后台(这时activity已经不可见,但是它的实力和状态都保持不变),系统会调用另外的一些生命周期方法。...
分类:
移动开发 时间:
2014-08-08 08:29:35
阅读次数:
181
Unlike other programming paradigms in which apps are launched with a main()method, the Android system initiates code in an Activity instance by invoking specific callback methods that correspond to specific stages of its lifecycle. There is a sequence of c...
分类:
移动开发 时间:
2014-08-08 08:28:45
阅读次数:
539
OC是面向对象的语言,同java,python等等一样。OC中的变量类命名同其他对象语言基本类似,写法遵循驼峰法则一般命名用到的是下划线,字母,开头字符非数字,网上很多有说也可以$符号,其实命名中基本不会用到这个OC里面的关键字也不多,如图:OC中分基本数据类型和指针类型(即..
分类:
移动开发 时间:
2014-08-07 07:37:40
阅读次数:
308
Action bar允许你为与当前应用上下文相关的最重要的action items添加action按钮。那些直接显示在action bar上的icon或者文字都被称作action buttons。那些不适合action bar或者不是那么重要的Actions将会被隐藏在action overflow(译者注:action bar最右侧的垂直的三个点)里。...
分类:
移动开发 时间:
2014-08-07 03:08:28
阅读次数:
409
The action bar provides your users a familiar and predictable way to perform actions and navigate your app, but that doesn't mean it needs to look exactly the same as it does in other apps. If you want to style the action bar to better fit your product bra...
分类:
移动开发 时间:
2014-08-07 03:07:49
阅读次数:
605