ChinaUnix.net
相关文章推荐:

android 嵌入另一个 Activity

本帖最后由 prolj 于 2010-08-27 11:41 编辑 地址如下:https://www.axurer.com/?p=1151 android activity and Task Design GuidelinesThis document describes core principles of the android application framework, from a high-level, user-centric perspective useful to interaction and application designers as well as application developers.It illustrates activities and tasks with examples, and describes s...

by killeder - 移动操作系统 - 2010-08-28 15:00:59 阅读(6680) 回复(4)

相关讨论

当然最终还是没有能够解决,但是经历了以下阶段。 首先,使用sdk中的hieracyviewer,在模拟器上可以工作,在真机上不能工作。跟踪源码,发现它是往真机上的viewserver服务发命令,而viewserver又往windowmanager服务发命令,而windowmanager又是往ViewRoot上发命令,最终转到View上的dump,但是这个是受debug控制的,非debug版本压根就没这功能。F*CK.方案A失败。 然后,想使用JAVA的反射机制来做,开工写代码,先列出android上...

by 李营长 - C/C++ - 2012-04-25 21:25:38 阅读(3104) 回复(0)

  1. Docs
    • activitys Fundamentals
      http://developer.android.com/guide/topics/fundamentals/activities.html
    • Task and Back Stack
      http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html
    • activity and Task Design Guidelines
      http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html
    • xxx

by web_surf - 移动操作系统 - 2011-12-22 08:51:11 阅读(872) 回复(0)

Introduction This tutorial will show you how to create a sub-activity from a calling-activity, and process the results produced by the sub-activity, if you want to do so. Also, the various ways of launching a sub-activity are covered, along with the android activity history stack. A subclass of activity is also provided that makes it trivial to launch sub-Activities and respond to results fro...

by goandroid - 移动操作系统 - 2008-11-26 13:07:16 阅读(2622) 回复(0)
by prolj - 嵌入式开发 - 2010-07-12 14:16:45 阅读(7174) 回复(25)

同长个fragment作为activity UI的部分,并嵌入到整个结构中。 两种方式 增加个fragment到activity layout中: 4.1 在activity layout文件中声明fragment[code] android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="match_parent"> android:name="...

by 拉里佩奇 - 移动操作系统 - 2013-07-25 14:08:37 阅读(852) 回复(0)
by LinuxSurfing - 移动操作系统 - 2011-12-21 08:41:30 阅读(842) 回复(0)

activity 是我们 开发 android应用程序最重要的个类。这个类的内容比较多,我理解多少 就写多少,希望你喜欢:) 这篇文章会涉及到以下几个内容 activity的生命周期 二 让activity变成个窗口:activity属性设定 三 你后台的activity被系统回收怎么办:onSaveInstanceState 四 调用与被调用:我们的通信使者 - Intent activity的生命周期 和其他手机平台的应用程序样,android的应用程序的生命周期是被统掌控 的,...

by andy04911 - Java文档中心 - 2009-11-23 09:56:11 阅读(1360) 回复(0)

对 http://code.google.com/android/reference/android/app/activity.html 进行了翻译整理,以便对activity类有个整体了解。 activity类处于android.app包中,继承体系如下: 1.java.lang.Object 2.android.content.Context 3.android.app.ApplicationContext 4.android.app.activity activity是单独的,用于处理用户操作。几乎所有的activity都要和用户打交道,所以activity类创建了个窗口,开发人员可以通过 setContent...

by zxgang_andy - Java文档中心 - 2008-09-07 20:37:58 阅读(1450) 回复(0)

intent的个应用--activity的跳转! 其实Intent的应用很广,今天我把前两天学的Intent的个应用共享下,很容易。 基本步骤就是 Intent intent = new Intent();//新建activity intent.setClass(Testactivity.this, login.class);//从本类的activity跳转到目标activity。 startactivity(intent);//执行目标activity Testactivity.this.finish();//退出第activity 注:还要在android...

安卓

by 三里屯摇滚 - 移动操作系统 - 2011-12-20 15:18:21 阅读(1227) 回复(1)