打开源码中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
http://www.cnblogs.com/zhuguangwei/archive/2011/01/18/1938276.html一、隐藏标题栏 //隐藏标题栏 this.requestWindowFeature(Window.FEATURE_NO_TITLE);二、隐藏状态栏 //隐藏状态栏.....
分类:
移动开发 时间:
2014-08-16 19:41:30
阅读次数:
231
分为两种情况:1. 想要隐藏某个视图的状态栏, 比如说, 从界面A, push 到界面B的时候, 界面A原本显示状态栏, 然而我们需要界面B不显示状态栏。这时候, 可以这样做:在B中实现:- (void)viewDidLoad
{
[super viewDidLoad];
if ([self respondsToSelector:@selector(setNeedsSta...
分类:
移动开发 时间:
2014-08-16 17:09:40
阅读次数:
220
值此FOSS4G大会即将召开之日,最近我会在Blog上依次介绍一些OpenGIS标准、架构及用于实现的软件。一方面给初涉此行的朋友一个快速入门的概览,另一方面也是对我接触OpenGIS近一年来的总结。 OpenGIS定义了一组基于数据的服务,而数据的基础是要素(Feature)。所谓要素简单...
分类:
其他好文 时间:
2014-08-16 12:20:50
阅读次数:
227
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
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