什么是Android的冰柱参数? [英] What is Android's icicle parameter?

查看:128
本文介绍了什么是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 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().

这篇关于什么是Android的冰柱参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆