我想使用样式: R.style.Widget_MaterialComponents_TextInputLayout_OutlinedBox从一个非activity类创建一个带边框的TextInputLayout()' on a null object reference
at com.google.android.material.textfield.TextInputLayout.setBoxCornerRadii(
我想创建具有Widget.MaterialComponents.TextInputLayout.OutlinedBox风格的TextInputLayout。我尝试了很多方法,但都不能得到所需的结果。这是我的代码。TextInputLayouttextInputLayout = new TextInputLayout(getActivity(),null,R.style.Widget_MaterialComponents_TextInputLa