Android TextInputField Inflator Error

后端 未结 13 1338
野的像风
野的像风 2020-12-03 06:55

Had a crash while trying to use the new TextInputField for Android and wanted to share my solution.

Trying the new TextInputField in the android appcomp

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-03 07:29

    Use the following:

    View view = LayoutInflator.from(getActivity()).inflate(R.layout.your_layout_file,parent,false);
    

提交回复
热议问题