Refactor  Source Code and suport for drawerlayout and slidingpanelayout