Just a short question: in all the examples I saw in the Android documentation, the fragments are static inner classes. Is this a requirement of Android? Or can they be created as regular inner classes? Is there anyone who understands the insides of Android enough to give an answer?
From what I read in the OCJP documentation, these static inner classes are not supposed to be classes at all, but are just static members of the class in which they are contained, like any static method - for example, the main one.
Your understanding is appreciated.
source
share