refine the general method of creating view.
add an activity to test the achartengine