fix some issue

fix the issue cause by build file.sample project is application ,not library.
fix the issue cause by override style file.if override style file directly,it will cause some expection.like follows:

```
java.lang.RuntimeException: Binary XML file line #8: You must supply a layout_width attribute.
```