Android中的FILL_PARENT与WRAP_CONTENT的区别

FILL_PARENT

Special value for the height or width requested by a View. FILL_PARENT means that the view wants to be as big as its parent, minus the parent's padding, if any. This value is deprecated starting in API Level 8 and replaced by MATCH_PARENT .

fill_parent布局指将视图扩展以填充所在容器(也就是父容器)的全部空间。


WRAP_CONTENT

Special value for the height or width requested by a View. WRAP_CONTENT means that the view wants to be just large enough to fit its own internal content, taking its own padding into account.

wrap_content布局指根据视图内部内容自动扩展以适应其大小。

更多相关文章

  1. android用户界面-组件Widget-地图视图MapView
  2. Android(安卓)中文API(86)——ResourceCursorAdapter
  3. android用户界面-组件Widget-画廊视图Gallery
  4. android 中文api (62) —— ViewSwitcher.ViewFactory
  5. Android中滑屏初探 ---- scrollTo 以及 scrollBy方法使用说明
  6. android api 中文 (74)—— AdapterView.AdapterContextMenuInfo
  7. Android(安卓)如何开发 Bottom Navigation 风格
  8. Android(安卓)自定义组件 方法篇
  9. 深入Gradle插件开发

随机推荐

  1. Android(安卓)自带email应用对html支持不
  2. Android(安卓)MVP开发模式实践
  3. Android(安卓)选项菜单Menu
  4. Android远程服务例程
  5. adb如何打印kernel输出log
  6. Android(安卓)OpenGL ES 1.x 教程的Nativ
  7. Android(安卓)单元测试之UI测试
  8. C#2Android
  9. android XXXActivity和getApplicationCon
  10. Android(安卓)网络图片异步加载实例