编程小白一枚,如题,如何才能做到,我现在已经在app中添加了浮动的导航菜单,我希望在点击导航菜单的时候启动一个新的activity,但是下面的代码完成不了,请大神看一下
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentV...
分类:
移动开发 时间:
2014-12-24 18:08:17
阅读次数:
177
代码实现
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
//使用图片初始化背景色
self.view.backgroundColor = [UIColor colorWithPat...
分类:
移动开发 时间:
2014-12-24 18:02:30
阅读次数:
139
项目来源:http://blog.csdn.net/super_spy/article/details/9700815这个资源简直是无法更赞了。这个动画分析效果图如下:源码分析及注释:注:overridePendingTransition只支持android 2.0以上版本Android的动画效果分...
分类:
移动开发 时间:
2014-12-24 16:09:20
阅读次数:
301
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
switch (requestC...
分类:
移动开发 时间:
2014-12-24 11:52:24
阅读次数:
233
public class EyeView extends FrameLayout {
private Paint paint;
private Bitmap bitmap;
public EyeView(Context context) {
super(context);
init();
}
public EyeView...
分类:
微信 时间:
2014-12-23 21:18:01
阅读次数:
488
public class ParamButton extends Button
{
// com.ts.factoryset.ParamButton
private int mParam;
public ParamButton(Context context)
{
super(context);
}
public ParamButton(Context contex...
分类:
移动开发 时间:
2014-12-23 19:30:00
阅读次数:
166
摘要:国产手机一直都有山寨手机的影子,iPhone 6 发布之后,国产手机就开始了新的模式。
尼采Super 6:依然耿直
就是这样的尼采,从来在抄袭,从来没超越的尼采;从iPhone 4就开始抄袭,从iPhone 4时代就抢占了乡镇手机营运市场的尼采。不过尼采相较别的厂商还是很“耿直”的,人家就是“做自己”,就是采用了那句“比逼格更逼格”的宣传语,就是这么任性!
小霸王X7:重视用户体...
分类:
其他好文 时间:
2014-12-23 15:34:38
阅读次数:
128
创建一个菜单字
var startScene =cc.Scene.extend({
//判断游戏是否已经开始
is_Start : false,
//创建构造函数
ctor :function(){
//初始化父类中的构造函数
this._super();
//写一个laebl型的菜单
//var label= new cc.LabelTTF...
分类:
Web程序 时间:
2014-12-23 12:25:11
阅读次数:
165
- (void)viewDidLoad{ [super viewDidLoad]; _scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 66, 320, 480)]; //中间还有其他控件 ...
分类:
Web程序 时间:
2014-12-23 10:21:54
阅读次数:
220
题目意思:
http://acm.hdu.edu.cn/showproblem.php?pid=1087
此题的意思求最长上升子序列的和。
题目分析:
在求最长上升子序列的时候,不在保存最长的个数,而是保存他们的和即可。
AC代码:
/**
*最长上升子序列问题+保存得到的分数
*/
#include
#include
#include
#include
#...
分类:
其他好文 时间:
2014-12-22 19:37:21
阅读次数:
171