Use ViewCompat to support API level 14

The PhotoGrid example does work in Android 4.0.3 after the change