使用v7,支持低版本的Actionbar时,修改actionbar的title等属性...
分类:
其他好文 时间:
2014-06-20 10:32:43
阅读次数:
169
Action Bar是一种新増的导航栏功能,在Android 3.0之后加入到系统的API当中,它标识了用户当前操作界面的位置,并提供了额外的用户动作、界面导航等功能。使用ActionBar的好处是,它可以给提供一种全局统一的UI界面,使得用户在使用任何一款软件时都懂得该如何操作,并且ActionBar还可以自动适应各种不同大小的屏幕。下面是一张使用ActionBar的界面截图。其中,[1]是ActionBar的图标,[2]是两个action按钮,[3]是overflow按钮...
分类:
移动开发 时间:
2014-06-20 09:18:22
阅读次数:
407
题目
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary t...
分类:
其他好文 时间:
2014-06-07 15:31:32
阅读次数:
179
【题目】
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ ...
分类:
其他好文 时间:
2014-06-07 13:57:37
阅读次数:
210
1.
信号量机制的缺陷问题:在上面的生产者消费者实例中,信号量的工作机制如下(我们以生产者的代码为例):1 down(&empty);2
down(&mutex);3 enter_item(item);4 up(&mutex);5
up(&full);如果交换1号和2号语句,变成:1 down(&m...
分类:
其他好文 时间:
2014-06-06 22:36:54
阅读次数:
336
Another great feature of comfort jestmankiet.
This ensures that they are secured in the package. The bag can be rolled up,
without the need for roll c...
分类:
其他好文 时间:
2014-06-06 09:59:04
阅读次数:
196
运行bin/jmeter.bat后,先来了解几个术语:
1、线程组:测试里每个任务都要线程去处理,所有我们后来的任务必须在线程组下面创建。可以在“测试计划->添加->线程组”来建立它,然后在线程组面板里有几个输入栏:线程数、Ramp-Up
Period(in seconds)、循环次数,其中Ram....
分类:
其他好文 时间:
2014-06-05 19:21:13
阅读次数:
330
题目链接 You are given an n x n 2D matrix representing
an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do
this in-place? ...
分类:
其他好文 时间:
2014-06-05 16:56:29
阅读次数:
228
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-06-05 14:15:07
阅读次数:
221
Follow up for problem "Populating Next Right
Pointers in Each Node".What if the given tree could be any binary tree? Would
your previous solution stil...
分类:
其他好文 时间:
2014-06-05 13:26:37
阅读次数:
335