use getDefaultSharedPreferences instead of getPreferences for button settings.
make variables in AnslyzeView private.
Padding refresh query (invalidate of graphView), so more smooth animate.