首页 > 在联想手机中listView加入的view不能正常显示,求解

在联想手机中listView加入的view不能正常显示,求解

        TextView v = new TextView(context);
        int height = DEFAULT_HEIGHT_SIZE * 6;
        if (height < DeviceInfo.HEIGHT * 0.5) {
            height = (int) (DeviceInfo.HEIGHT * 0.5);
        }
        Log.e("slideHeight", "----->" + height);
        v.setText(" ");
        v.setBackgroundColor(Color.RED);
        v.setLayoutParams(new AbsListView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, height));
        listView.addFooterView(v);

@chuyao 谢谢提醒

【热门文章】
【热门文章】