This linearlayout doesn't seem to do anything but holding the NumberFieldEdit view, hence it can be removed. Widgets don't need to be within a viewgroup to be added to a layout file.