I want to apply the new material design to my android app and have a small problem with my xml file.
16dp
You are declaring item elements here, not dimen. For example this one works:
16dp 16dp @dimen/activity_horizontal_margin