从今天開始 咱也模仿 红孩儿这些大牛分析源代码 ,因为水平有限 不正确之处欢迎狂喷。哈哈。#ifndef __UIWIDGET_H__#define __UIWIDGET_H__#include "ui/CCProtectedNode.h"#include "ui/UILayoutDefine.h"...
分类:
其他好文 时间:
2014-09-27 16:09:29
阅读次数:
279
Tried to register widget with id==content but that id is already registered
分类:
其他好文 时间:
2014-09-27 12:23:09
阅读次数:
191
cocos2d-x 3.2 Button点击事件里调用移除当前层报错http://www.th7.cn/program/ios/201408/271227.shtml诡异的错误,点击关闭按钮,居然进入void Widget::onTouchEnded(Touch *touch, Event *unu...
分类:
其他好文 时间:
2014-09-26 19:18:58
阅读次数:
132
最近在学习Android,边看书边敲代码,看到是李宁的Android开发完全讲义,因为是对着书本敲的,所以代码跟原书的代码基本上是一致的看到第四章,定制控件,觉得需要记录下些东西,所有把代码写到博客作为自己以后查阅的资料。先上效果图在src新建net.blogjava.mobile.widget/I...
分类:
移动开发 时间:
2014-09-25 00:32:57
阅读次数:
436
在我理解其实PopupWindow其实类似于一个不能动的Widget(仅从显示效果来说!)。它是浮在别的窗口之上的. ? 下面我将给大家做一个简单的Demo,类似于音乐播放器的Widget的效果,点击Button的时候出来PopupWindow,首...
分类:
移动开发 时间:
2014-09-24 20:40:07
阅读次数:
266
它們的原型如下:void android.widget.ImageView.setImageResource(int resId)void android.view.View.setBackgroundResource(int resid)區別是:setImageResource與xml中的src的...
分类:
其他好文 时间:
2014-09-24 19:51:47
阅读次数:
244
/*! * jQuery UI Widget 1.8.1 * * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL ...
分类:
Web程序 时间:
2014-09-24 17:26:57
阅读次数:
313
一、结构 public class ViewAnimator extends FrameLayout java.lang.Object android.view.View android.view.ViewGroup android.widget.Fr...
分类:
移动开发 时间:
2014-09-24 12:40:16
阅读次数:
221
MainActivity如下:
package com.francis.deletablelistview;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.SimpleAdap...
分类:
其他好文 时间:
2014-09-24 11:29:16
阅读次数:
265
1. Now add one more menu item to by name "PersonForm" to your PracticeMenus.xml file.2. Create one file in widget by name PracticeForms.xml and create...
分类:
其他好文 时间:
2014-09-24 01:29:55
阅读次数:
359