Вот что я сделал для теста.Некоторые скриншоты здесь , здесь и здесь .
Я думаю, это вполне соответствует тому, что вы пытаетесь достичь.
И некоторый код для действия AlphabetActivity.java
package com.ocus.androidtests.activity;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Gallery;
import com.ocus.androidtests.R;
public class AlphabetActivity extends Activity {
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.alphabet);
final Gallery gallery = (Gallery) findViewById(R.id.gallery);
final String[] strings = new String[] {
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" };
gallery.setAdapter(new ArrayAdapter<String>(this,
R.layout.alphabet_item, strings));
}
}
Код для разметки alphabet.xml
<?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">
<Gallery
android:id="@+id/gallery"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:spacing="20sp" android:unselectedAlpha="1"/>
</LinearLayout>
И код дляпредставление адаптера (макет) alphabet_item.xml
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textSize="30sp" />