For some reason, I had the activity and fragment layout set twice. On Activity onCreate:
protected void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.edit_consumption);
and on the fragment onCreateView:
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.edit_consumption, null);
So I had 2 layers of layout. I only had to remove that layout from the Activity onCreate to fix the problem.