打开源码中CheckBox.java文件,我们可以看到如下内容:publicclassCheckBoxextendsCompoundButton{
publicCheckBox(Contextcontext){
this(context,null);
}
publicCheckBox(Contextcontext,AttributeSetattrs){
this(context,attrs,com.android.internal.R.attr.checkboxStyl..
分类:
移动开发 时间:
2014-08-18 01:39:44
阅读次数:
267
Wow! Such Conquering! Problem Description There are n Doge Planets in the Doge Space. The conqueror of Doge Space is Super Doge, who is going to inspe...
分类:
其他好文 时间:
2014-08-18 01:32:53
阅读次数:
235
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in...
分类:
其他好文 时间:
2014-08-17 16:58:52
阅读次数:
201
K-NiceTime Limit:1 Second Memory Limit:32768 KB Special JudgeThis is a super simple problem. The description is simple, the solution is simple. If you...
分类:
其他好文 时间:
2014-08-17 02:16:11
阅读次数:
273
分为两种情况:1. 想要隐藏某个视图的状态栏, 比如说, 从界面A, push 到界面B的时候, 界面A原本显示状态栏, 然而我们需要界面B不显示状态栏。这时候, 可以这样做:在B中实现:- (void)viewDidLoad
{
[super viewDidLoad];
if ([self respondsToSelector:@selector(setNeedsSta...
分类:
移动开发 时间:
2014-08-16 17:09:40
阅读次数:
220
Activity转到other Activity
package cn.itcast.activitys;
import android.app.Activity;
public class MainActivity extends Activity
{
super.onCreate(Bundle savedInstanceState);
setContentView(...
分类:
其他好文 时间:
2014-08-15 14:46:39
阅读次数:
189
packagecom.ArrayHashSet.a;
classPerson{
privateStringname;
privateintage;
publicPerson(Stringname,intage){
super();
this.name=name;
this.age=age;
}
publicStringgetName(){
returnname;
}
publicvoidsetName(Stringname){
this.name=name;
}
pub..
分类:
其他好文 时间:
2014-08-14 20:58:19
阅读次数:
132
Topcoder上的一道题目,题目描述如下:Problem StatementByteland is a city with many skyscrapers, so it's a perfect venue for BASE jumping. Danilo is an enthusiastic B...
分类:
编程语言 时间:
2014-08-14 20:24:39
阅读次数:
307
import java.util.Comparator; class Studentxx { private String nameString; private int age; public Studentxx(String nameString, int age) { // super(); ...
分类:
其他好文 时间:
2014-08-14 16:28:18
阅读次数:
178
子类的构造的过程必须调用其基类的构造方法。子类可以在自己的构造方法中使用super(参数列表)显式调用基类的构造方法(必须位于子类构造方法的第一条),使用this(参数列表)可以调用本类的另外的构造方法。如果子类的构造方法中没有显式地调用基类的构造方法,则系统默认调用基类无参构造方法。如果子类的构造...
分类:
编程语言 时间:
2014-08-14 16:11:09
阅读次数:
177