2
간단한 xml textview를 항목으로로드하는 ArrayList가 있습니다. TextView에서 나는 drawableleft를 가지고 있지만 그 이미지를 어떻게 바꿀 수 있을지 모르겠습니다. 어댑터 또는? Drawable 객체를 문자열 목록에 삽입하는 방법이 지금 있으므로.TextView 변경 DrawableLeft in ListView
items = new ArrayList<String>();
items.add(Some String item);
이
<TextView
android:id="@+id/item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:drawableLeft="@drawable/folder"
android:drawableEnd="@drawable/next" >
</TextView>
네, 정상적으로 작동합니다. 누군가가 내가 코드를 표시 할 수있는 경우 –
코드를보아야합니다. –