ListView

Item不允许点击

private class GoodsAdapter extends BasicAdapter {
	@Override
        public boolean isEnabled(int position) {
            return false;
        }
}

Header或Footer不可点击

mListView.addHeaderView(headerView, null, false);
mListView.addFooterView(footerView, null, false);

Item里面包含了可点击控件(Button之类)

在Item的布局最外层加个配置
android:descendantFocusability="blocksDescendants"

ListView中包含EditText后获取焦点异常

mListView.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS);
posted @ 2015-10-13 10:56  阿偉  阅读(107)  评论(0)    收藏  举报