Why does FindViewById return null?

Why does FindViewById return null?
Answer
FindViewById can be null if you call the wrong super constructor in a custom view. The ID tag is part of attrs, so if you ignore attrs, you delete the ID.
 

Tìm kiếm

Back
Top