在完成了 上一篇课程后,你已经有了一个应用。这个应用展示了一个包含一个文本框和一个按钮的activity(一个单独的界面)。在这次的课程中,你将会通过在MainActivity中添加一些代码,来让当给你点击Send按钮时能够跳转到另一个activity中。
响应Send按钮
为了响应按钮的点击事件,打开fragment_main.xml 布局文件,然后在
元素中加入an...
分类:
移动开发 时间:
2014-08-05 00:41:39
阅读次数:
382
1 改变NavBar颜色:选中Navigation Bar 的Tint属性。选中颜色。2 隐藏“back”按钮: self.navigationItem.hidesBackButton = YES;3 隐藏"NavBar" : self.navigationController.navigation...
分类:
移动开发 时间:
2014-08-04 20:39:47
阅读次数:
228
Google的Android官方文档:Actions that can't fit in the action bar or aren't important enough are hidden in the action overflow. The user can reveal a list o...
分类:
移动开发 时间:
2014-08-04 13:25:27
阅读次数:
229
上讲回顾:Bootstrap组件丰富同时具有良好可扩展性,能够很好地应用在生产环境。这些组件包括按钮(Button),导航(Navigation),缩略图(thumbnails),提醒(Alert),进度条(progress bar)等,能够很好减少前端工程师的代码量,实现更加丰富充实的页面。 .....
分类:
Web程序 时间:
2014-08-02 09:53:53
阅读次数:
496
今天在弄android的viewdeck界面时,发现action bar左上角的icon是app的icon,没法修改,找了半天,发现可以用activity-alias来设置,它可以快速指向到一个Activity,但同时又能各自定义不同的icon。 <activity-al...
分类:
其他好文 时间:
2014-08-01 23:24:22
阅读次数:
533
APPLE提供了三种storyboard segue的方式:push,modal,custom . push segue是系统预定义的跳转方式, 为了使其能正常工作,我们还必须加载UINavigationController。 有时候,我们不想看到UINavigation bar,我们可以使用m.....
分类:
移动开发 时间:
2014-08-01 13:04:11
阅读次数:
315
在这款应用程序中谷歌对部分功能、API和设计架构进行了非常详细的阐述,其中包括碎片、程序加载、服务、广播、接收器、警告、通知、SQLite数据库、内容提供商、Action Bar、导航Drawer和Google Drive API、Google Cloud Messaging、Material De...
分类:
其他好文 时间:
2014-07-31 12:54:16
阅读次数:
229
Description
Dumbear likes to play the Chinese Rings (Baguenaudier). It’s a game played with nine rings on a bar. The rules of this game are very simple: At first, the nine rings are all on the bar....
分类:
其他好文 时间:
2014-07-30 20:50:24
阅读次数:
319
题目:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rain....
分类:
移动开发 时间:
2014-07-30 09:47:13
阅读次数:
272
可变变量的样例 1 $bar . "\n";12 echo $foo->$baz[1] . "\n";13 14 $start = 'b';15 $end = 'ar';16 echo $foo->{$start . $end} . "\n";17 18 $arr = 'arr';19 echo.....
分类:
Web程序 时间:
2014-07-29 21:00:22
阅读次数:
182