2011-11-03 1 views
0

나는 내 목록보기에 아이콘뿐만 아니라 작은 설명을 넣는 방법을 찾기 위해 거의 72 시간을 보냈다. 나는 길을 찾지 못해서 너의 도움을 요청해야한다고 생각했다. 이것은 내 XML입니다. 안드로이드의 ListView에 대한 작은 설명 추가

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="vertical" > 
    <ListView android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     android:id="@+id/lvdaysInWeek" 
     android:padding="10dp" 
     android:textSize="20sp" /> 



</LinearLayout> 

그리고 내 자바는 내가 아이콘과 lisview의 본문 아래에 작은 설명을 추가 할 수있는 방법을 가르쳐주세요이

public class Schedule extends ListActivity{ 

      ListView daysInWeek; 
      String myList[] = {"Monday","Tuesday", "Wednesday", 
    "Thursday","Friday","Saturday","Sunday"}; 



      @Override 
      protected void onCreate(Bundle savedInstanceState) { 
       // TODO Auto-generated method stub 
       super.onCreate(savedInstanceState); 
       setContentView(R.layout.schedule); 
       daysInWeek = (ListView) findViewById(R.id.lvdaysInWeek); 
       daysInWeek.setAdapter(new ArrayAdapter<String> 
(this,android.R.layout.simple_list_item_1,myList)); 

      } 

같은 것을 보았다.

미리 감사드립니다.

답변