开发者

(in Android) Do Activity classes need to be in a separate .java file?

开发者 https://www.devze.com 2023-01-15 21:49 出处:网络
I amnew to android development and am currently working my way through the \"Hello...\" Tutorials on the developer website.

I am new to android development and am currently working my way through the "Hello..." Tutorials on the developer website.

I got stuck on the Tab Layout walkthrough and the only way I could r开发者_如何转开发esolve it was to put each Activity Class in a separate .java file.

I was wondering if all Activities need to be in separate .java files, or am I missing something.


See this question. The answer is no, because Java does not allow it (with the exceptions discussed in the responses to my link).

0

精彩评论

暂无评论...
验证码 换一张
取 消