Nested inner Activity class in android

后端 未结 3 2003
悲&欢浪女
悲&欢浪女 2021-01-18 01:16

Is declaring a class that extends Activity inside another Activity class possible? If it is, how would I register that class in the manifest? Also, is that something that ca

3条回答
  •  不知归路
    2021-01-18 01:53

    I'd also be curious why you'd want to do this.

    However, I don't see any reason why it wouldn't work. Couldn't you reference it in the AndroidManifest as you normally would as long as both classes are public? i.e. com.falmarri.ListClass.ItemClass?

    Edit: Nevermind, this doesn't work as EboMike pointed out.

提交回复
热议问题