0
fragment android question
what does this mean? im reading a book on android when i saw this."All fragments must have a public no-argument constructor."why do we need this?
1 ответ
0
I imagine because internally the fragments are (sometimes/often) created without being explicitly called, and the default constructor is needed to do this. But it has to follow the same access rules, so if you create another constructor this will mean there is no default no-argument constructor and the fragment will fail to be instantiated