I can#39;t use API reflection on androidx.appcompat:appcompat:1.1.0(我不能在 androidx.appcompat:appcompat:1.1.0 上使用 API 反射)
问题描述
I have a problem with androidx.appcompat:appcompat:1.1.0. It's a new problem because on androidx.appcompat:appcompat:1.0.2 it does not exist.
I have a code that uses reflection to get mPopup Field from the spinner and set its height. It works very well on appcompat:1.0.2 but not on androidx.appcomppat:appcompat:1.1.0.
The code is
I read about bugs on a new appcompatActivity from appcompat:1.1.0. However, I can't find a solution to my problem.
Everybody.
I was able to do it.
First, i put the spinner on the activity with java code. "programatically".
Then i call the code put at the beginning in my question.
I hope it works for many people, and to skip this error of the new version.
Regards.
这篇关于我不能在 androidx.appcompat:appcompat:1.1.0 上使用 API 反射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!