Fixed Dialog appearance on Android <3.0

Also fixed a crash due to a reference to a non-existing attribute in Android 2.x