码迷,mamicode.com
首页 >  
搜索关键字:the new villa    ( 74666个结果
调bug心得及一个很二的bug
有时候运行结果错误,但是vs没抛异常,这时可以用trycatch来帮我们捕捉异常。 例如:bug的情况是treeview只显示一个根节点和一个子节点,还不报错,我擦~ private void f_script_Load(object sender, EventArgs e) { List parents = new t_scriptsBLL().g...
分类:其他好文   时间:2014-05-15 07:06:00    阅读次数:202
Android 关于获取摄像头帧数据解码
// 创建保存照片文件夹 private void CreateFileJPG() { File file = new File("/sdcard/image"); if (!file.exists()) { try { file.mkdirs(); } catch (Exception e) { // TODO: handle exceptio...
分类:移动开发   时间:2014-05-15 06:39:58    阅读次数:434
Java中的图形界面编程
final JLabel j1=new JLabel("测试"); JButton jb=new JButton("测试事件监听"); jb.addMouseListener(new MouseAdapter(){ public void mousePressed(MouseEvent e){ j1.setText("鼠标按下");/j1必须用final修饰。 } });...
分类:编程语言   时间:2014-05-15 06:33:25    阅读次数:397
TextView 下划线/字体/颜色
TextView txtShuoming; SpannableStringBuilder builder =  new SpannableStringBuilder(getResources().getString(R.string.shuoming)); //1.设置字体颜色 builder.setSpan(new ForegroundColorSpan(...
分类:其他好文   时间:2014-05-15 05:46:49    阅读次数:251
HDU4768:Flyer(二分)
Problem Description The new semester begins! Different kinds of student societies are all trying to advertise themselves, by giving flyers to the students for introducing the society. However, due ...
分类:其他好文   时间:2014-05-15 03:57:24    阅读次数:311
bitmap使用全程记录
今天做了一个简单的应用,大致是向服务器请求一张图片,然后点击跳转到另外一个界面上使得这张图片可以自由伸缩。 首先是在ActivityA中请求图片,使用Ajax请求,代码如下所示。 // 2014.5.12晚 AQuery aq = new AQuery(RepairInfoDetail.this); mViewPhotoText = (TextView) findViewBy...
分类:其他好文   时间:2014-05-15 03:48:56    阅读次数:322
内存池设计及实现参考资料
利用默认的内存管理函数new/delete或malloc/free在堆上分配和释放内存会有一些额外的开销。 系统在接收到分配一定大小内存的请求时,首先查找内部维护的内存空闲块表,并且需要根据一定的算法(例如分配最先找到的不小于申请大小的内存块给请求者,或者分配最适于申请大小的内存块,或者分配最大空闲的内存块等)找到合适大小的空闲内存块。如果该空闲内存块过大,还需要切割成已分配的部分和较小的空...
分类:其他好文   时间:2014-05-15 02:56:28    阅读次数:227
eclipse 搭建salesforce开发环境
Launch Eclipse and click Help > Install New Software.... Click Add.... In the Add Repository dialog, set the Name to "Force.com IDE" and the Location to "http://media.developerforce.com/...
分类:系统相关   时间:2014-05-15 02:51:11    阅读次数:480
Map中按value值排序
大家都知道,在java中的集合Map中按键值key排序比较简单,只需引用集合TreeMap即可,可是怎样实现按value值排序呢?下面我们来测试一下: public class TestHashMap { public static void main(String[] args) { Map map = new HashMap(); map.put("zhangsan", 1); ...
分类:其他好文   时间:2014-05-15 02:37:34    阅读次数:263
android点滴之标准SD卡状态变化事件广播接收者的注册
目前最完整的,需要注册的动作匹配如下: IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_MOUNTED); intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); intentFilter.addAction(Intent.ACT...
分类:移动开发   时间:2014-05-14 14:45:27    阅读次数:361
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!