Activity 保存状态1. void onCreate(Bundle savedInstanceState)当Activity被第首次加载时执行。我们新启动一个程序的时候其主窗体的onCreate事件就会被执行。如果Activity被销毁后(onDestroy后),再重新加载进Task时,其on...
分类:
其他好文 时间:
2014-08-16 16:23:50
阅读次数:
150
本文是由英文帮助翻译所得:“任务流 task flows”可以包括非可视化的组件,比如方法调用。“页片段 page fragment”可以运行在一个页面的某个局部区域,最大限度地提高复用性。ADF Task Flow是在JSF Controller的基础上扩展而来的,它除了包括View Activi...
分类:
其他好文 时间:
2014-08-15 12:36:18
阅读次数:
413
1.Actionbar功能:菜单可视化back按钮标题子标题SherlockActionbar注意事项导入库,继承SherlockFragmentActivity主题修改为Theme.SherlockonCreateOptionsMenu()编译出错,Menu类型错,getSupportMenuInflater()设置Actionbar属性2.SlidingMenu开源项目源码中有错误修改Slidin..
分类:
其他好文 时间:
2014-08-15 02:55:57
阅读次数:
224
1.FrameAnimation原理:多个关键帧按照顺序快速(100毫秒)切换三个要素:图片/顺序/时间2.TweenAnimation原理:系统通过改变View的大小位置角度透明度code和xml创建Animationxml:简单,不可动态改变code:灵活,可以动态改变缺点:只是视图上改变了控件,控件实际的位置不变3.P..
分类:
其他好文 时间:
2014-08-15 02:55:27
阅读次数:
175
When designing your application to support a wide range of screen sizes, you can reuse your fragments in different layout configurations to optimize the user experience based on the available screen space.
For example, on a handset device it might be appr...
分类:
移动开发 时间:
2014-08-15 01:33:26
阅读次数:
344
In order to reuse the Fragment UI components, you should build each as a completely self-contained, modular component that defines its own layout and behavior. Once you have defined these reusable Fragments, you can associate them with an Activity and conn...
分类:
移动开发 时间:
2014-08-15 01:33:16
阅读次数:
333
要在Android系统上创建一个动态或者多面板的用户界面,你需要将UI组件以及activity行为封装成模块,让它能够在你的activity中灵活地切换显示与隐藏。你可以使用Fragment类来创建这些模块,它们能够表现得有些像嵌套的activity,它们定义着自己的布局,管理自己的生命周期。...
分类:
移动开发 时间:
2014-08-15 00:00:20
阅读次数:
357
介绍了如何通过Fragment和Activity两种方式实现动态加载APK,从而可以减小应用程序的体积...
分类:
移动开发 时间:
2014-08-15 00:00:06
阅读次数:
330
你可以把fragment看成是activity的模块化部分,它拥有自己的生命周期,接受它自己的输入事件,你可以在activity运行时添加或者删除它(有点像是一个“子activity”,你可以在不同的activity中重用它)。本课将向你展示如何使用Support Libaray继承 Fragment 类来让你的应用能够兼容正在运行Android 1.6的设备。...
分类:
移动开发 时间:
2014-08-14 23:55:06
阅读次数:
301
第一部分 个性化控件(View)主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipV...
分类:
移动开发 时间:
2014-08-14 13:16:48
阅读次数:
631