内容可以左右滑动,因为使用了ViewPager(我这里用了V4包)view_pager_main.xml activitypackage
com.example.actionBarTest.actionBarTabViewPager;import
android.app.ActionBar;impo...
分类:
移动开发 时间:
2014-05-12 16:08:41
阅读次数:
409
安装ActionBar:
Support Android 3.0 and Above Only(仅支持3.0版本之后)
...
Support Android 2.1 and Above(如果想让应用支持3.1版本之后,需如下操作)
1安装v7 appcompat 库
2Update your activity so that it extends ActionB...
分类:
移动开发 时间:
2014-05-02 06:52:12
阅读次数:
508
这道题我一开始想到用递归方法,可以把规模大的问题变成规模小的问题,但是觉得递归的时间复杂度很高,因为它会把相同的问题进行重复计算,然后我想是不是有什么down-up的方法,先把所有的子问题的结果保存起来,但是发现问题的最优解并不能由子问题的最优解推导出来。最后就想到买股票的时候,我们在一个局部极小的...
分类:
其他好文 时间:
2014-05-01 19:24:02
阅读次数:
250
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?
刚开始没有思路,但是自己举了几个简单的栗子才看出规律:需要一圈儿一圈儿的变换位置。有两层for循环:外...
分类:
其他好文 时间:
2014-05-01 18:33:34
阅读次数:
359
如果程序支持API11以下的版本,那么需要修改多个地方
values-v14 和values-v11下面的styles中也要写上
@style/MyActionBar
@drawable/ab_solid_light_holo
@drawable/ab...
分类:
其他好文 时间:
2014-05-01 17:32:26
阅读次数:
383
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-05-01 08:35:40
阅读次数:
443
Background:
It's fairly common for businesses to want to provide some high availability for their SQL Server databases, and one option is to have two SQL Server databases on separate machines with a SQL Server database mirrored....
分类:
数据库 时间:
2014-04-30 22:11:38
阅读次数:
520
懂放弃,学会放弃,但不要轻言放弃。我们要学会知道:放弃是一种艺术!...
分类:
其他好文 时间:
2014-04-29 13:42:21
阅读次数:
253
The blonde Angela has a new whim: internet chats. Of course, as any blonde, she writes her messages using the upper case. You are the moderator of Angela's favorite chat and you're fed up with her upp...
分类:
其他好文 时间:
2014-04-29 13:17:21
阅读次数:
293