什么是Android的冰柱参数?冰柱、参数、Android

由网友(陌路归人)分享简介:我注意到一些编码人用冰柱的onCreate方法,我想知道这到底是什么:I've noticed in some coding people use icicle with the onCreate method, and I was wondering what it is exactly:public class...

我注意到一些编码人用冰柱的onCreate方法,我想知道这到底是什么:

I've noticed in some coding people use icicle with the onCreate method, and I was wondering what it is exactly:

public class About extends Activity {
    @Override
    protected void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.whatup);
    }

这是同样的事情, savedInstanceState

推荐答案

冰柱有时被用来作为参数的名称,因为的onSaveInstanceState()过去被称为 onFreeze()

"icicle" is sometimes used as the name of the parameter because onSaveInstanceState() used to be called onFreeze().

阅读全文

相关推荐

最新文章