I am doing a Popup with 3 Spinners and an EditText. After reading many blogs and articles I can't decide which is the best option, PopupWindow or DialogFragment.
The criteria would be:
- Compatibility with different Android's versions
- Performance
If there is a better way to do it I am open to change the perspective.
Thank you very much.
DialogFragment:
PopupWindow:
EDIT: CONCLUSION
DialogFragment allows you to use more complex features. Another important thing is that it is more tablet-friendly as it lets user to have opened more than one fragment at a time. Fragments are a more dynamic solution and they are the standard for newer Android versions.
PopupWindow is simpler and it is very helpful on simple questions to the user.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…