public class MainActivity extends Activity
{ private Spinner spinner=null; protected void onCreate(Bundle
savedInstanceState) {super.onCreate(savedIns...
分类:
其他好文 时间:
2014-05-28 00:35:18
阅读次数:
234
在使用AutoLayout后,想要使用代码控制ScrollView的contentSize,应该在[super
viewDidAppear:animated]之后进行。http://willsbor-blog.logdown.com/posts/179101-ios-autolayout-at-sc...
分类:
其他好文 时间:
2014-05-26 23:45:38
阅读次数:
278
SUPER可调用父类的构造方法,但要注意默认调用和参数调用。同时,在继承类时,可以用SUPER调用其它非构造方法哟。class
Test extends Object{ public Test(){ System.out.println("Test1 First thing");...
分类:
编程语言 时间:
2014-05-26 18:50:48
阅读次数:
325
public ImageButton(Context context, AttributeSet
attrs, int defStyle) { super(context, attrs, defStyle); setFocusable(true); }
在...
分类:
移动开发 时间:
2014-05-25 23:24:31
阅读次数:
393
class SuperClass{ static{ System.out.println("super
class init!"); } static int superInt = 1; static String superString = "supS...
分类:
编程语言 时间:
2014-05-23 04:35:31
阅读次数:
253
import java.util.Random;
public class NumberSort{
/**
* 私有构造方法,禁止实例化
*/
private NumberSort(){
super();
}
/**
* 冒泡排序
* 比较相邻的元素。如果第一个比第二个大,就叫唤他们两个位置。
* 对每一组相邻的元素作同样的工作,从开始的第一对到结束后的最后一对,这样剩下的...
分类:
编程语言 时间:
2014-05-23 02:13:51
阅读次数:
364
昨晚把BaseScreen就敲好了, 也找到了屏幕放缩的最优和最简方式. 不多说, 看代码:
public BaseScreen(final SnakeGo game) { super(new ScalingViewport(Scaling.fit,
CommonConsts.Screen.WIDT...
分类:
其他好文 时间:
2014-05-22 14:52:32
阅读次数:
206
1、在fragment的代码中 @Override public void
onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub
super.onCreate(save...
分类:
其他好文 时间:
2014-05-22 13:48:05
阅读次数:
197
#import "CHViewController.h"
@interface CHViewController ()
@end
@implementation CHViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view,...
分类:
其他好文 时间:
2014-05-22 12:38:44
阅读次数:
369
实现银行系统的账目,增加金额,与减少金额。当支付金额小于实际金额时,返回假。当增加金额成功时,为真。publicclassAccount{
privatedoublebalance;
publicdoublegetBalance(){
returnbalance;
}
publicAccount(doublebalance){
super();
this.balance=balance;
}
publicboo..
分类:
编程语言 时间:
2014-05-21 01:57:06
阅读次数:
329