I have an android application with 4 tab in it.
one of theme is "setting tab" that it's duty is to show all settings must be have in application.
for now i have two parts in this fragment.one for "change language" and another for "change font settings".for every functionaliy, i write some code and some listeneres.all of theme in "setting fragment".it obviously violate the open/closed principle. if i want in the future add some functionality to this fragment, i have to change it and violate again ocp. i want to follow appropriate design pattern to manage this situation. anybode suggest me best practice?
Aucun commentaire:
Enregistrer un commentaire