Had a crash while trying to use the new TextInputField for Android and wanted to share my solution.
TextInputField
Trying the new TextInputField in the android appcomp
Use the following:
View view = LayoutInflator.from(getActivity()).inflate(R.layout.your_layout_file,parent,false);