modify for android view  and library