---
title: "在类中设置控件的大小"
author: "ping8080"
date: "2011-04-08T11:05:20Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2011-04-08T11:05:20Z"
id: 992074
url: "https://ping8080.iteye.com/blog/992074"
---

item.setLayoutParams(new LayoutParams(

　　LayoutParams.WRAP\_CONTENT,

　　LayoutParams.WRAP\_CONTENT));