android - Custom Preference with AndroidX Preference
问题描述
Before AndroidX,
I would override the Preference's onCreateView(ViewGroup parent)
method to pass Custom Layouts to be used as Preference.
But in AndroidX's Preference, there is no onCreateView(ViewGroup parent)
method but it instead has onBindViewHolder(PreferenceViewHolder holder)
, I am not sure how to pass custom layouts & use them instead..
Any help would be highly appreciated!
Thanks!
解决方案
推荐阅读
- javascript - chai.use(chaiHttp); 一次还是在每个测试文件中?
- terminal - 如何修复 miniconda (Linux) 中的 featureCounts 错误“featureCounts: invalid option -- 'r'”
- c - 我可以告诉编译器我需要提前破坏内存操作数吗?
- git - 上面有一个带有箭头标记的文件夹,其中包含我的反应应用程序,它没有在 github 中打开
- javascript - 以用户身份创建登录并以组织 mongodb 身份登录
- amazon-web-services - AWS 服务之间的 AWS S3 传输成本
- c++ - Qt webassembly 缓存
- python - 在django中将动态变量从父模板传递给子模板
- delphi - TVirtualStringTree - 不能使列标题显示为“按钮”
- amazon-web-services - 将策略附加到 AWS Elasticsearch