---
title: "android error: Error: String types not allowed (at ‘layout_width’ with value"
author: "strutsliu"
date: "2011-04-21T22:52:23Z"
tags: []
categories: ["移动开发"]
slug: "android-error-error-string-types-not-allowed-at-layout-width-with-value"
draft: false
lastmod: "2011-04-21T22:53:30Z"
id: 1011966
url: "https://strutsliu.iteye.com/blog/1011966"
---

兼容性的问题，2.2后开始使用match_parent，如果要使用之前的api可以将“match_parent”改为“fill_parent”


参考
http://henzil.easymorse.com/?p=89