iOS 设置UILabel 的内边距-
(void)drawTextInRect:(CGRect)rect { UIEdgeInsets insets = {0, 5, 0, 5}; [super
drawTextInRect:UIEdgeInsetsInsetRect(rect, in...
分类:
移动开发 时间:
2014-05-14 10:12:21
阅读次数:
4319
import java.awt.*;import javax.swing.*;public class
GridBagDemo extends JFrame { public static void main(String args[]) {
GridBagDemo demo = new GridB...
分类:
编程语言 时间:
2014-05-14 08:23:37
阅读次数:
298
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); Button btn = new Button(this);
btn.setText("测试ndk"); btn.setOnCl...
分类:
移动开发 时间:
2014-05-14 02:33:36
阅读次数:
488
在res/layout/menu文件夹下,放置login.xml:
代码中配置如下:@Overridepublic boolean onCreateOptionsMenu(Menu menu)
{super.onCreateOptionsMenu(menu);getMenuInflat...
分类:
移动开发 时间:
2014-05-14 02:30:32
阅读次数:
581
第四节(1):异步网络操作一、结合asyncTask下载网络图片1.定义下载类,继承自asyncTask,参数分别为:String(url地址),Integer(刻度,本例没有用到),BitMap(下载成功后的图片)public
class downloadImageTask extends Asy...
分类:
移动开发 时间:
2014-05-14 02:28:28
阅读次数:
537
Super Star
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3198
Accepted: 853
Special Judge
Description
During a voyage of the starship Hakodate-maru (se...
分类:
其他好文 时间:
2014-05-13 23:49:40
阅读次数:
491
导入两个包:
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends ActionBarActivity {@Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
分类:
移动开发 时间:
2014-05-13 23:19:51
阅读次数:
509
又算是一段时间学习的结束,回首不懂的,模糊的还有,却也发现,不懂的却变懂,这两天要复习了,我一定要认真,我觉得是基础学习最后的战斗和机会了,我今天就从前开始看了一下书,加上网上的资料和总结,主要说说这个简单有麻烦的this和super. this:代表对象。就是所在函数所属对象的引用。this到.....
分类:
其他好文 时间:
2014-05-13 21:27:47
阅读次数:
383
效果图:
程序代码:
bool HelloWorld::init()
{
//////////////////////////////
// 1. super init first
if ( !CCLayer::init() )
{
return false;
}
CCSize visibleSize =...
分类:
移动开发 时间:
2014-05-13 16:27:03
阅读次数:
402
登录只要放在主页就可以了,这里为了美观,把用bootstrap的form-inline类修饰,如下样子:
前台代码如下:
{%extends 'main.html'%}
{%block header%}
首页
成员
群聊
{%if not cookieName%}
用户名
密码
登录
无帐号,请点击注册
{...
分类:
其他好文 时间:
2014-05-13 06:01:54
阅读次数:
349