Change minimum sdk to 1

Add targetApi annotation for setting layer