Refactoring the brushes dialog for Android