Open mnlin0905 opened 5 years ago
对于design库: 如 27.1.1
27.1.1
public class BottomNavigationMenuView extends ViewGroup implements MenuView { //... private boolean mShiftingMode = true; private BottomNavigationItemView[] mButtons; //...
对于较高版本 design 库: 如 28.0.0
28.0.0
public class BottomNavigationMenuView extends ViewGroup implements MenuView { //... private int labelVisibilityMode; private BottomNavigationItemView[] buttons; //... }
两者 BottomNavigationItemView[] 类型的 成员域 名字不同,一个为mButtons,一个为buttons,导致反射失败;
BottomNavigationItemView[]
mButtons
buttons
????
对于design库: 如
27.1.1
对于较高版本 design 库: 如
28.0.0
两者
BottomNavigationItemView[]
类型的 成员域 名字不同,一个为mButtons
,一个为buttons
,导致反射失败;????