官方地址:http://developer.android.com/guide/practices/screens_support.html一、关于布局适配建议1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽量使用权重(android...
分类:
移动开发 时间:
2014-07-03 11:28:23
阅读次数:
321
虽然Android平台使用Java来开发应用程序,但Android程序却不是运行在标准Java虚拟机上的。可能是出于效率和版权的考虑,Google为Android专门设计了一套虚拟机Dalvik Virtual Machine。 上面是第三章的前言,一年多以前,作者写这本书的时候,Kitkat(A....
分类:
移动开发 时间:
2014-07-02 00:55:49
阅读次数:
283
c#基类子类的函数调用关系,代码说明newkeyword后面的类中的函数为对象调用的函数,当然必需要有virtual和override,继承就相当于包括了基类的函数,子类对象调用时基类的函数相当于就在子类其中一样。(必需要有virtual和override此代码才成立),问题是C#基础问题但非常ea...
分类:
其他好文 时间:
2014-07-01 23:46:27
阅读次数:
227
listview.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView parent, View view, int p...
分类:
其他好文 时间:
2014-07-01 22:44:58
阅读次数:
175
The QCOW2 Image Format https://people.gnome.org/~markmc/qcow-image-format.html The QCOW image format is one of the disk image formats supported by the...
分类:
其他好文 时间:
2014-07-01 00:11:18
阅读次数:
421
jQuery的parents()函数和parent()函数的区别:其实在jQuery中,函数或者选择器的概念都是很容易理解的,只要对API手册有足够的熟练就能够很容易分辨,标题中的函数其实也是如此,不过咱们这里还是做一些简单的介绍,毕竟这样可能更为方便一些。一.parents()函数:此函数能够获取...
分类:
Web程序 时间:
2014-06-30 23:23:18
阅读次数:
261
#include
#include
#include
typedef struct{
char a;//记录对应字符
int weight;//权值
int parent,lchild,rchild;
}HTNode,*HuffmanTree;
typedef char * *HuffmanCode;//动态分配数组存储哈夫曼编码表
void Select(H...
分类:
其他好文 时间:
2014-06-30 19:21:16
阅读次数:
205
先上效果图:
Title的Layout为:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
...
分类:
移动开发 时间:
2014-06-30 18:44:18
阅读次数:
269
来源:http://blog.csdn.net/jackiezhw/article/details/2673992在 C# 中,派生类可以包含与基类方法同名的方法。基类方法必须定义为 virtual。如果派生类中的方法前面没有 new 或 override 关键字,则编译器将发出警告,该方法将有如存...
分类:
其他好文 时间:
2014-06-30 15:22:08
阅读次数:
197
小知识点总结1.android中MotionEvent.ACTION_CANCEL事件如何被触发?对于这个问题,android文档的说明很简短,想看明白很难。国外一网页说的还比较详细,写在这里分享给大家:原文是这样的:You receive this when a parent takes poss...
分类:
移动开发 时间:
2014-06-30 14:50:17
阅读次数:
205