在完成了 上一篇课程后,你已经有了一个应用。这个应用展示了一个包含一个文本框和一个按钮的activity(一个单独的界面)。在这次的课程中,你将会通过在MainActivity中添加一些代码,来让当给你点击Send按钮时能够跳转到另一个activity中。
响应Send按钮
为了响应按钮的点击事件,打开fragment_main.xml 布局文件,然后在
元素中加入an...
分类:
移动开发 时间:
2014-08-05 00:41:39
阅读次数:
382
Welcome back. Last time, we dove into bottom end of the pixel pipeline. This time, we’ll switch back to the middle of the pipeline to look at what i.....
分类:
其他好文 时间:
2014-08-05 00:25:48
阅读次数:
321
CSS 定位属性CSS 定位属性允许你对元素进行定位。属性描述position把元素放置到一个静态的、相对的、绝对的、或固定的位置中。top定义了一个定位元素的上外边距边界与其包含块上边界之间的偏移。right定义了定位元素右外边距边界与其包含块右边界之间的偏移。bottom定义了定位元素下外边距边...
分类:
Web程序 时间:
2014-08-04 21:27:37
阅读次数:
470
1 改变NavBar颜色:选中Navigation Bar 的Tint属性。选中颜色。2 隐藏“back”按钮: self.navigationItem.hidesBackButton = YES;3 隐藏"NavBar" : self.navigationController.navigation...
分类:
移动开发 时间:
2014-08-04 20:39:47
阅读次数:
228
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>垂直</title> <style type="text/css"> #content { position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; height:240px; width:70%...
分类:
Web程序 时间:
2014-08-04 14:44:18
阅读次数:
412
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
因为项目需要新功能,要在一个图片的上下加上固定高度的白边如下图。项目中一直使用ABCpdf.NET处理图片,但我一直没有做这方面的功能,所以找来API参考做。 这个简单需求做的过程中出现了一些曲折,主要是ABCpdf.NET的坐标体系和想象中的不一样。 它坐标系不同于Windows所用的左上为原点的...
分类:
Web程序 时间:
2014-08-04 10:52:27
阅读次数:
376
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-03 22:59:56
阅读次数:
259
栈(stack) 是限定仅在表尾进行插入或删除操作的线性表。因此,对栈来说,表尾端有其特殊含义,称为栈项(top),相应地,表头端称为栈底(bottom)。不含元素的空表称为空栈。...
分类:
其他好文 时间:
2014-08-03 18:09:45
阅读次数:
313
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:
编程语言 时间:
2014-08-03 04:40:04
阅读次数:
351