您可以尝试在 ExpandableListView 中设置 'android:layout_height="match_parent"',这样就可以确保子菜单完全显示在屏幕上了。如果子菜单仍然不能完全显示,您可以考虑将 RelativeLayout 改为 LinearLayout,并使用 'android:layout_weight' 属性来调整 TabLayout 和 ExpandableListView 的高度比例。

Android ExpandableListView 子菜单显示不全?解决方法!

原文地址: https://www.cveoy.top/t/topic/nYmg 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录