어떻게 내 목록 항목 중 하나를 완전히 회색으로 표시 할 수 있습니까? 배경을 회색 또는 sth로 설정하지 마십시오. 그밖에.목록 항목을 회색화하는 방법은 무엇입니까?
public View getView(Context context)
{
View view = _inflater.inflate(R.layout.transfer_item, null);
view.setBackgroundColor(_unmoveable ? 0xFF111111 : Color.TRANSPARENT);
//view.setAlpha(0.5f);//? it says method did not exist ...
tim 제안대로하거나'setTextColor'와'setBackgroundColor'를 사용하여 둘 다 회색으로 설정하면 같은 효과가 있습니다. – Barak