我如下xml代码显示子菜单不全应该怎么办?xml version=10 encoding=utf-8RelativeLayout xmlnsandroid=httpschemasandroidcomapkresandroid xmlnsapp=httpschemasandroidcomapkres-auto androidlayout_width=match_parent and
您可以尝试在ExpandableListView中设置android:layout_height="match_parent",这样就可以确保子菜单完全显示在屏幕上了。如果子菜单仍然不能完全显示,您可以考虑将RelativeLayout改为LinearLayout,并使用android:layout_weight属性来调整TabLayout和ExpandableListView的高度比例。
原文地址: https://www.cveoy.top/t/topic/eLnG 著作权归作者所有。请勿转载和采集!