2011-11-13 5 views

답변

1

나는 이상적인에 대해 알고하지 않습니다하지만 당신은

1) 목록 항목을 나타내는 새로운 레이아웃을 생성 할 수 있습니다. 자신의, 말, MyAdapter 말에서, ArrayAdapter

3) 어댑터 클래스의 getView() 재정이 어디

있을 것이다 그것은 아마 TextView와 수평 LinearLayoutButton

2) 하위 클래스가 될 것입니다

public View getView (int position, View convertView, ViewGroup parent) { 
     View v = convertView; 
     if(v == null) { 
      v = View.inflate(R.layout.my_list_item_layout, null); 
     } 
     TextView txtName = (TextView)v.findViewById(R.id.mytext); 
     Button btnAction = (Button)v.findViewById(R.id.mybutton); 
     // then you do whatever you need with your text and button 
} 
+0

감사합니다. Alex는 .. 똑같은 코드를 가르쳐 주시겠습니까? – nikhil

+0

왜 누군가가이 대답에 downvoted, 나 궁금해 ... –

관련 문제