嵌套两个外层的LinearLayout: 第一个的宽度用wrap_content, 第二个的宽度用match_parent 如下: <LinearLayout        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:orientation="vertical" >  <LinearLayout            android:layout_width="match_parent"            android:layout_height="wrap_content"            android:orientation="vertical" >            <ListView                android:id="@+id/page_mat_size_list"                android:layout_width="wrap_content"                android:layout_height="wrap_content"                android:background="@color/transparent"                android:cacheColorHint="@color/transparent"                android:divider="@color/transparent"                android:dividerHeight="0.1dp" />        </LinearLayout></LinearLayout为什么会这样不清楚

更多相关文章

  1. 在android中ScrollView嵌套ScrollView解决方案
  2. ScrollView嵌套webview因焦点问题导致自动滑动
  3. ScrollView嵌套RecyclerView冲突解决
  4. android获得屏幕高度和宽度

随机推荐

  1. Android拦截、监听系统返回键事件
  2. Android(安卓)FFMPEG音视频开发(四)
  3. Android中全屏设置
  4. 读取Android设备的MAC地址
  5. Android(安卓)底部菜单栏RadioButton+Fra
  6. Android中dpi 和density到底是什么关系?
  7. 使用FragmentTabHost时,tabwidget被framen
  8. android 判断网络连接状态
  9. android 短信验证自动获取验证码
  10. Android(安卓)深入研究LBS(基于位置的服务