Diving at Cano Island, we'd backroll from the boat and as soon as the splash occurred, several bull sharks would come up from the bottom and swim figure 8s about 15' below us...they'd occassionally roll slightly to eyeball our fins. The panga driver kept assuring us that they were just 'friendly'...
I like sharks, and feel they usually do not pose much of a threat to divers, but this particular behavior was a bit unsettling.
After a couple of dives, I stopped waiting for my buddy at the surface and just dropped to the bottom asap. Seeing the bulls there I felt much more at ease with them.
At the surface, the thrashing sounds created at entry alerts the sharks that something may be injured or otherwise worth checking out. At depth, I think divers look less like prey and the noise from bubbles may deter the sharks from investigating closely.
The hammerheads I've encountered definitely avoided diver's bubbles.