Fix layout crash for android < 4.0