摘要: 一个Manifest只能包含一个application节点。他使用各种属性来指定应用程序的各种元数据(包括标题、图标和主题),在开发应用程序时,应该宝航一个设置有true的debuggable属性以启用调试,但是在发布时可以禁用该属性 application节点还可以作为一个包含了Activi... 阅读全文
posted @ 2015-10-10 10:31 偷着乐 阅读(1295) 评论(0) 推荐(0)
摘要: Intent intent =getIntent();overridePendingTransition(0, 0);finish();overridePendingTransition(0, 0);startActivity(intent); 阅读全文
posted @ 2015-10-10 09:51 偷着乐 阅读(859) 评论(0) 推荐(0)
摘要: Intent addIntent=new Intent("com.android.launcher.action.INSTALL_SHORTCUT");Parcelable icon=Intent.ShortcutIconResource.fromContext(MainActivity.this,... 阅读全文
posted @ 2015-10-10 09:49 偷着乐 阅读(149) 评论(0) 推荐(0)
摘要: 1. res下建立一个动画文件夹anim2. anim文件夹下面建立名称为:rotaterepeat动画xml文件 3. Activity文件下ImageView mAnimationView = (ImageView) findViewById(R.id.animation);mAnimation... 阅读全文
posted @ 2015-10-10 09:47 偷着乐 阅读(3947) 评论(0) 推荐(1)
摘要: 以下几个组件提供了应用程序的基本结构模块:1,Activity 应用程序的表示层。应用程序中的每一个UI都是通过Activity类的一个或多个扩展实现的。Activity使用Fragment和视图来布局和显示信息,以及影响用户动作。在桌面开发环境中,Activity就相当于Form、Windows窗... 阅读全文
posted @ 2015-10-10 09:46 偷着乐 阅读(444) 评论(0) 推荐(0)
摘要: 任何一个Android项目都包含一个AndroidManifest.xml文件,它存储在项目层次中的最底层。Manifest可以定义应用程序及其组件和需求的结构和元数据。 它包含了组成应用程序的每一个Activity、Service、Content Provider和Broadcast Rec... 阅读全文
posted @ 2015-10-10 09:45 偷着乐 阅读(306) 评论(0) 推荐(0)