class Parent{ int age; String name; public Parent(String name, int age){ this.name = name; this.age = age; } public void writeWay(){ ...
分类:
其他好文 时间:
2014-07-28 15:19:03
阅读次数:
182
class Parent{ int num = 8;// ->3 Parent(){ //super(); // ->2 //显示初始化 // ->3 //构造代码段 // ->4 show(); // ->5 } {// ->4 ...
分类:
编程语言 时间:
2014-07-28 14:46:13
阅读次数:
182
public class Test{ public static void main(String[] args){ Child child = new Child(); }}class Parent{ public Parent(){ super(); sho...
分类:
编程语言 时间:
2014-07-28 14:44:53
阅读次数:
199
/*样例1: class Parent{ int num = 3; } class Child extends Parent{ int num = 4; }*//*样例2:class Parent{}class Child extends Parent{ int num...
分类:
编程语言 时间:
2014-07-28 14:36:43
阅读次数:
214
一 Words 1 distraction 使分心,娱乐,使恼火n e.g. A very clingy child can drive a parent to distraction.一个非常黏人的孩子会让父母不胜其烦。 2 at the wheel 在驾驶室,当主管 e.g. I’ll take...
分类:
其他好文 时间:
2014-07-27 21:38:15
阅读次数:
220
先看效果:
布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout...
分类:
移动开发 时间:
2014-07-27 11:39:04
阅读次数:
238
typedef struct{
int wiget;
int lchild,rchild,parent;
int data;
}HNode,*HTree;
void select(HTree &H,int i,int &s1,int &s2){
int tmp,min1,min2=0;
...
分类:
其他好文 时间:
2014-07-27 11:11:52
阅读次数:
208
public GameObject _background;public UIAtlas atlas;private Dictionary _allCardSprite;for (int i=0; i(_parent); _sprite.atlas = atlas; ...
分类:
其他好文 时间:
2014-07-25 16:44:51
阅读次数:
293
在launcher.java中在createShortcut方法中 屏蔽所有应用按钮
改动之前
View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) {
BubbleTextView favorite = (BubbleTextView) mInflater.inflate(
layoutRe...
分类:
移动开发 时间:
2014-07-25 11:02:28
阅读次数:
290
本文将告诉你如何让你的应用程序支持各种不同屏幕大小,主要通过以下几种办法:让你的布局能充分的自适应屏幕根据屏幕的配置来加载合适的UI布局确保正确的布局应用在正确的设备屏幕上提供可以根据屏幕大小自动伸缩的图片使用 "wrap_content" 和 "match_parent"为了确保你的布局能够自适应...
分类:
移动开发 时间:
2014-07-24 17:25:42
阅读次数:
359