更新时间:2023-11-16 20:12:58
您需要删除你的注册preferenceFragment的
,因为你不能用充气充气的preferences。 onCreateView
功能
You need to remove the onCreateView
function in your SignUpPreferenceFragment
because you cannot inflate the preferences using the inflater.
这就是你所得到的错误,指出存在夸大错误 preferenceScreen
,因为它不知道在XML的标记/类。
That is why you are getting the error stating that there is an error inflating PreferenceScreen
because it does not understand that tag/class in the xml.
preferences.xml
是进行补充的充气preferencesFromResource
在的onCreate
。
Reference