Android_helloworld

所属分类:android开发
开发工具:Java
文件大小:682KB
下载次数:90
上传日期:2012-07-28 22:31:34
上 传 者tornadomeet
说明:  实验功能: 在第一个Hello World!为标签的activity中显示good,该界面中有一个名为Next的按钮。点击Next按钮进入到第二个activity中去,第二个界面中只有1个Close按钮。当然,据网上有人将要比较安全的实现关闭程序的功能也不是挺简单的,因为android有专门的退出键返回键等。所以该Close按钮暂时没去实现它。 我的第1个activity为HelloworldActivity,第2个activity为NextActivity. 实验说明: 1. 要实现从1个activity跳到另一个activity,这需要通过intent来实现。当然我们需要在Next按钮上绑定一个按钮按下的监听器(这些好像是java中的知识,可我从没学过java,只能用到哪个地方再去学了),一旦该按钮监听到有按键按下,则通过intent将指定的第2个activity触发,这样就完成了本次试验的功能。 2.在工程中,每一个activity都对应一个xml文件,xml文件主要是控制各控件的位置和属性的.   3. asserts目录下可以存放任何文件,res目录下也可以存放任意文件,且res下的文件会在gen目录下的R.java文件中自动生成一个全局id。   4. res目录下的values目下的strings.xml中的控件也是每个控件都在R.jar中对应一个id号。当然layout下的main.xml文件也是一样的。  
(Experimental features:               In the first Hello World! For the activity of the label to display the good, the interface has a button called Next. Click the Next button to enter the second activity, the second interface is only a Close button. Of course, some people will be safer to close the program, according to online function is not very simple, and android have a dedicated exit key and return key. The Close button temporarily failed to achieve it.               I an activity for HelloworldActivity 2 activity is NextActivity.               Experiments show that:             (1) from one activity to another activity, which requires intent to achieve. Of course we need to bind on the Next button press of a button listener (like java in knowledge, but I never learned the java, and can only be used where to go to school). Once the button to listen to button is pressed,)

文件列表:
Android开发历程_1(从1个activity挑战到另一个activity).docx (41035, 2012-07-28)
helloworld\.classpath (364, 2012-07-28)
helloworld\.project (846, 2012-07-28)
helloworld\.settings\org.eclipse.jdt.core.prefs (177, 2012-07-28)
helloworld\AndroidManifest.xml (898, 2012-07-28)
helloworld\bin\AndroidManifest.xml (898, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\BuildConfig.class (353, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\HelloworldActivity$MyButtonListener.class (1108, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\HelloworldActivity.class (1136, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\NextActivity.class (768, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R$attr.class (352, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R$drawable.class (459, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R$id.class (470, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R$layout.class (458, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R$menu.class (415, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R$string.class (589, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R$style.class (407, 2012-07-28)
helloworld\bin\classes\com\example\helloworld\R.class (661, 2012-07-28)
helloworld\bin\classes.dex (319744, 2012-07-28)
helloworld\bin\helloworld.apk (157203, 2012-07-28)
helloworld\bin\jarlist.cache (119, 2012-07-28)
helloworld\bin\res\drawable-hdpi\ic_action_search.png (409, 2012-07-28)
helloworld\bin\res\drawable-hdpi\ic_launcher.png (4316, 2012-07-28)
helloworld\bin\res\drawable-ldpi\ic_launcher.png (1842, 2012-07-28)
helloworld\bin\res\drawable-mdpi\ic_action_search.png (311, 2012-07-28)
helloworld\bin\res\drawable-mdpi\ic_launcher.png (2748, 2012-07-28)
helloworld\bin\res\drawable-xhdpi\ic_action_search.png (491, 2012-07-28)
helloworld\bin\res\drawable-xhdpi\ic_launcher.png (5729, 2012-07-28)
helloworld\bin\resources.ap_ (21536, 2012-07-28)
helloworld\gen\com\example\helloworld\BuildConfig.java (164, 2012-07-28)
helloworld\gen\com\example\helloworld\R.java (1448, 2012-07-28)
helloworld\ic_launcher-web.png (37006, 2012-07-28)
helloworld\libs\android-support-v4.jar (337562, 2012-07-28)
helloworld\proguard-project.txt (781, 2012-07-28)
helloworld\project.properties (563, 2012-07-28)
helloworld\res\drawable-hdpi\ic_action_search.png (3120, 2012-07-28)
helloworld\res\drawable-hdpi\ic_launcher.png (3056, 2012-07-28)
helloworld\res\drawable-ldpi\ic_launcher.png (1457, 2012-07-28)
helloworld\res\drawable-mdpi\ic_action_search.png (3030, 2012-07-28)
helloworld\res\drawable-mdpi\ic_launcher.png (1928, 2012-07-28)
... ...

近期下载者

相关文件


收藏者