For some reason, I had an activity and fragment setting set twice. About onCreate Activities:
protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.edit_consumption);
and on the onCreateView snippet:
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 needed to remove this layout from Activity onCreate to fix the problem. You may have the same problem.
xpete
source share