隐藏最顶端的通知条(Top Notification Bar/ActionBar)本文地址: http://blog.csdn.net/caroline_wendyAndroid中, 视频播放等功能需要全屏播放, 就需要隐藏最上面的Notification Bar/ActionBar;最上面的Bar, 其实是与Theme有关, 在Theme中有些设计样式(style), 就可以隐藏这个”条".代码...
分类:
移动开发 时间:
2014-11-15 08:54:51
阅读次数:
165
这次相对来讲复杂点,题目如下:
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:27:53
阅读次数:
174
这次相对来讲复杂点,题目如下: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from lea...
分类:
其他好文 时间:
2014-11-15 01:23:35
阅读次数:
192
参考: http://developer.android.com/tools/device.html lsusb Bus 001 Device 004: ID 18d1:9025 Google Inc. vi /etc/udev/rules.d/80-android.rules SUBSYSTEMS...
分类:
移动开发 时间:
2014-11-14 17:38:35
阅读次数:
179
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?Solution:public cla...
分类:
其他好文 时间:
2014-11-14 17:15:48
阅读次数:
159
正在准备一个项目,需要尊重android design的同时还要做到很好的兼容低版本,于是就先从actionBar开始吧。1,新建一个android工程startActionBar,minSdkVersion="7",targetSdkVersion="18",用19(暂时最新)的版本编译。2,将s...
分类:
其他好文 时间:
2014-11-14 13:52:19
阅读次数:
224
一、概括
(1)自旋锁适用于SMP系统,UP系统用spinlock是作死。
(2)保护模式下禁止内核抢占的方法:1、执行终端服务例程时2、执行软中断和tasklet时3、设置本地CPU计数器preempt_count
(3)自旋锁的忙等待的实际意义是:尝试获取自旋锁的另一个进程不断尝试获取被占用的自旋锁,中间只pause一下!
(4)在抢占式内核的spin_lock宏中,第一次关抢占,目的...
分类:
其他好文 时间:
2014-11-14 12:37:57
阅读次数:
287
在Android 3.0中除了我们重点讲解的Fragment外,Action Bar也是一个重要的内容,Action Bar主要是用于代替传统的标题栏,对于Android平板设备来说屏幕更大它的标题使用Action Bar来设计可以展示更多丰富的内容,方便操控。 Action Bar主要功能包含:....
分类:
移动开发 时间:
2014-11-14 12:14:23
阅读次数:
224
实现切换Tabs标签;Activity代码: publicclassActionBarTabsextendsActivity{@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceSt...
分类:
移动开发 时间:
2014-11-14 12:07:43
阅读次数:
199
在Android3.0之后,Google对UI导航设计上进行了一系列的改革,其中有一个非常好用的新功能就是引入的ActionBar,他用于取代3.0之前的标题栏,并提供更为丰富的导航效果。一、添加ActionBar1、不需要导入ActionBar,因为在android3.0或者以上版本中,Actio...
分类:
移动开发 时间:
2014-11-14 12:05:16
阅读次数:
176