Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176));
a...
分类:
其他好文 时间:
2014-05-01 21:53:45
阅读次数:
461
相对某个控件进行布局
Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176)...
分类:
其他好文 时间:
2014-05-01 18:04:08
阅读次数:
503
自定义View继承自View@OverrideonDraw方法引用方式1、layout.addView()2、LinearLayout.addView---------------添加组件LinearLayout包含的所有子元素都受LinearLayout.LayoutParams控制,因此Line...
分类:
其他好文 时间:
2014-05-01 09:48:12
阅读次数:
368
思路很简单,就是存储之前运算的结果,然后递归class Solution {public: int**
dp; int get_min_sum(vector > &grid, int m, int n) { if (dp[m][n] != -1)
...
分类:
其他好文 时间:
2014-05-01 07:54:47
阅读次数:
330
The variables are guaranteed to be laid out
contiguously, as in C. However, the access blocks may not appear in the object
in the order that you decla...
分类:
数据库 时间:
2014-05-01 04:11:22
阅读次数:
543
.h
#include "cocos2d.h"
#include "cocos-ext.h"
#include "ui/CocosGUI.h"
#include "cocostudio/CocoStudio.h"
USING_NS_CC;
USING_NS_CC_EXT;
using namespace ui;
.cpp
layout = Layout::crea...
分类:
其他好文 时间:
2014-04-30 22:33:39
阅读次数:
382
.h添加如下代码:
void pageViewEvent(Ref *pSender, PageViewEventType type);...
分类:
其他好文 时间:
2014-04-30 22:31:39
阅读次数:
405
.h中添加
int _count;
Layout* layout;
void update(float delta);
layout = Layout::create();
layout->setSize(Size(widgetSize.width, widgetSize.height));...
分类:
其他好文 时间:
2014-04-30 22:28:39
阅读次数:
401
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。如下所示: <LinearLayout
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-04-29 13:14:20
阅读次数:
391
EBS OAF 开发中的OAQueryBean的构造模式(版权声明,本人原创或者翻译的文章如需转载,如转载用于个人学习,请注明出处;否则请与本人联系,违者必究)当你为pageLayout区域添加一个query 区域时,OAF框架生成一个oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean对象,它依赖于它的配置,并通过一个子控件table,...
分类:
其他好文 时间:
2014-04-29 13:12:19
阅读次数:
328