Minor fixes to the layout (invalid IDs)
Set target API version to 19 (Android 4.4)
Minor fixes to the backporting

Use newer APIs when available