public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); Button btn = new Button(this);
btn.setText("测试ndk"); btn.setOnCl...
分类:
移动开发 时间:
2014-05-14 02:33:36
阅读次数:
488
在res/layout/menu文件夹下,放置login.xml:
代码中配置如下:@Overridepublic boolean onCreateOptionsMenu(Menu menu)
{super.onCreateOptionsMenu(menu);getMenuInflat...
分类:
移动开发 时间:
2014-05-14 02:30:32
阅读次数:
581
Super Star
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 3198
Accepted: 853
Special Judge
Description
During a voyage of the starship Hakodate-maru (se...
分类:
其他好文 时间:
2014-05-13 23:49:40
阅读次数:
491
导入两个包:
import android.view.Window;
import android.view.WindowManager;
public class MainActivity extends ActionBarActivity {@Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
分类:
移动开发 时间:
2014-05-13 23:19:51
阅读次数:
509
又算是一段时间学习的结束,回首不懂的,模糊的还有,却也发现,不懂的却变懂,这两天要复习了,我一定要认真,我觉得是基础学习最后的战斗和机会了,我今天就从前开始看了一下书,加上网上的资料和总结,主要说说这个简单有麻烦的this和super. this:代表对象。就是所在函数所属对象的引用。this到.....
分类:
其他好文 时间:
2014-05-13 21:27:47
阅读次数:
383
效果图:
程序代码:
bool HelloWorld::init()
{
//////////////////////////////
// 1. super init first
if ( !CCLayer::init() )
{
return false;
}
CCSize visibleSize =...
分类:
移动开发 时间:
2014-05-13 16:27:03
阅读次数:
402
linux服务器端设置所需软件包[root@localhost~]#rpm-qa|grepxdmxorg-x11-xdm-1.1.6-14.1.el6.x86_64[root@localhost~]#rpm-qa|grepgdmgdm-2.30.4-39.el6.x86_64gdm-user-switch-applet-2.30.4-39.el6.x86_64pulseaudio-gdm-hooks-0.9.21-14.el6_3.x86_64gdm-plugin-fingerprint..
分类:
系统相关 时间:
2014-05-13 03:27:00
阅读次数:
405
public class MyView extends View{ Bitmap
myBitmap; Paint paint; public MyView(Context context, AttributeSet attrs) {
super(context, attrs); this.ini.....
分类:
移动开发 时间:
2014-05-12 20:14:55
阅读次数:
402
Java
继承中的构造方法子类可以继承父类的构造方法,并遵循以下原则:子类构造的构成中必须调用其基类的构造方法。
2、子类可以在自己的构造方法中使用super()调用基类的构造方法。 使用this()调用本类的另外的构造方法。
如果调用super(),必须写在子类构造方法的第一行。 3、...
分类:
编程语言 时间:
2014-05-12 13:53:00
阅读次数:
320
首先,给Actionbar添加返回图标:代码: @Override protected
void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.s.....
分类:
移动开发 时间:
2014-05-12 01:38:48
阅读次数:
379