QWidget->setWindowFlags(Qt::Widget | Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowStaysOnTopHint);...
分类:
其他好文 时间:
2015-01-14 12:48:26
阅读次数:
656
此错误比较难定位,场景是这样的:在一个widget中使用了自定义控件,始终会报android.view.InflateException:BinaryXMLfileline#2:Errorinflatingclass...这个错误。最后实在没有办法了,写了一个demo中只有一个重写的textview...
分类:
移动开发 时间:
2015-01-13 21:30:42
阅读次数:
172
验证码public class SpinnerImg extends ImageView { /** * 完成选择后启动另外一个spinner */ private ItemListener itemListener; private Context mContex...
分类:
移动开发 时间:
2015-01-13 17:19:24
阅读次数:
188
逻辑注册登录----index---logoutviews.pyfromdjangoimportforms
fromdjango.httpimportHttpResponse,HttpResponseRedirect
fromdjango.shortcutsimportrender_to_response
frommodelsimportUser
classUserForm(forms.Form):
username=forms.CharField()
password=forms.CharFie..
分类:
其他好文 时间:
2015-01-12 19:29:06
阅读次数:
139
1.背景 用mac的用户都应该知道,mac有一个很好的功能,就是dashboard小控件的功能,按下F12键就可以自由切换。博主最近在背GRE单词,就尝试这开发了一个背单词的dashboard小控件。效果如图...
分类:
系统相关 时间:
2015-01-09 10:48:27
阅读次数:
188
一本英文书,介绍如何开发苹果电脑的 Dashboard 控件的,
就是最左侧屏幕上的小程序。
是用特别的关键词,配上语法,和一些固定死的定义。来写的 html, javascript, css
来写成的小程序。
放入一文件夹中,再把文件夹改成特定的名称。
就可以用了。
想玩玩是不错的。
实用性不是特别大,限制多,跟百度的轻应用很像。
书的内容是不错。
推荐
在我的这个博...
分类:
系统相关 时间:
2015-01-09 10:47:47
阅读次数:
200
1. 效果图
2. SlidingSwitch.java文件内容:
package com.jun.widget;
import com.jun.slidingswitch.R;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitma...
分类:
其他好文 时间:
2015-01-07 15:01:29
阅读次数:
152
自定义控件,覆写父类如下:
import android.content.Context;
import android.util.AttributeSet;
import android.widget.VideoView;
/**
* The CustomVideoView is to make videoView view length-width based on the paramet...
分类:
其他好文 时间:
2015-01-07 15:00:52
阅读次数:
276
Ecshop包括的文件夹有admin、api、cert、data、images、includes、js、 languages、plugins、temp、theme、wap、widget这些文件夹,和根目录下的所有.php文件。这些文件和文件夹组成了整 个ecshop。 如果从软件工程角度分析ecsh...
分类:
其他好文 时间:
2015-01-06 19:51:06
阅读次数:
216
动画播放alpha参数改变但无实际画面效果,原因是要挂一个脚本,设置实时更新数据。NGUIvoid Update(){ widget.SetDirty();}UGUIvoid Update(){ graphic.SetAllDirty();}
分类:
其他好文 时间:
2015-01-06 17:30:36
阅读次数:
391