필자는 APIDemos를 조사한 결과 텍스트가 보이는 갤러리의 예가 있지만 코드는 Cursor를 사용하지만 String 배열을 사용하려고합니다. 이 일을 어떻게하면 될까요?안드로이드 갤러리 텍스트 전용
Cursor c = getContentResolver().query(People.CONTENT_URI, null, null, null, null);
startManagingCursor(c);
SpinnerAdapter adapter = new SimpleCursorAdapter(this,
// Use a template that displays a text view
android.R.layout.simple_gallery_item,
// Give the cursor to the list adatper
c,
// Map the NAME column in the people database to...
new String[] {People.NAME},
// The "text1" view defined in the XML template
new int[] { android.R.id.text1 });
감사합니다. –