0
목록보기를 사용자 정의 (부풀려서)하고 있습니다. 텍스트와 배경 이미지를 조건으로 사용했습니다. 이제 목록보기를 스크롤 할 때 텍스트보기의 배경이 다른 텍스트보기와 겹치는 문제가 있습니다.부풀린 목록보기의 문제
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View icontextlayout=convertView;
icontextlayout= inflater.inflate(R.layout.layout_complex_list, null);
TextView Txt1=(TextView)icontextlayout.findViewById(R.id.txt1);
if(disp1==true)
{
Txt1.setBackgroundResource(R.drawable.pic)
}
else
Txt1.setText("Text1 "+strUser);//
TextView Txt2=(TextView)icontextlayout.findViewById(R.id.txt2);
if(disp2==true)
{
Txt2.setBackgroundResource(R.drawable.pic);
}
else Txt2.setText("Text2: "+strIndus);
return icontextlayout;
}
당신이 다른 사람의 배경을 중복되지 않는 배경 이미지 그림을 좀 도와 주 시겠어요 : 다음은 샘플 코드입니다. 감사 하라구요
...
효과가있었습니다. 당신이 정말로 내 관심을 이겨내. 고마워 크리스티안. – Pankaj
정말 고마워요. 옵션에 대해서도 고마워요. 코드가 어떤 값의 타입인지 쉽게 이해할 뿐이에요. 어쨌든 당신이 도왔습니다. – Pankaj