android 中 new button(this) ,new button(getApplicationContext

学习 时间:2026-10-24 07:21:55 阅读:3345
android 中 new button(this) ,new button(getApplicationContext)的主要区别和用法

最佳回答

无心的冰棍

优秀的鼠标

2026-10-24 07:21:55

若该类继承一父类,
比如 public class TextActivity extends Activity{}
new button(this) 指的是 Activity ,而后者则指的是 TextActivity。

最新回答共有2条回答

  • 勤恳的耳机
    回复
    2026-10-24 07:21:55

    若该类继承一父类,比如 public class TextActivity extends Activity{}new button(this) 指的是 Activity ,而后者则指的是 TextActivity。

上一篇 to swim in Kunming Lake is a great pleasure

下一篇 定制衣柜选择移门和平开门,哪一种好些呢