---
title: "android：ListView中放置Button导致点击失效"
author: "恶灵挽歌"
date: "2012-08-13T23:58:11Z"
tags: []
categories: ["移动开发"]
slug: "android-listview-button"
draft: false
lastmod: "2012-08-13T23:58:25Z"
id: 1630968
url: "https://elingwange.iteye.com/blog/1630968"
---

ListView 和其它能触发点击事件的widget（如Button）无法一起正常工作，是因为ListView的itemclick事件被其它widget的click事件屏蔽，无法触发。

      解决方法是在Button的属性设置中添加 <span style="color:blue">android:focusable = "false"。</span>