我已经做好了Gallery View
gallery = (Gallery) findViewById(R.id.gallery1);
MyAdapter adapter = new MyAdapter(this);
gallery.setAdapter(adapter);
gallery.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View v,
int position, long id) {
Intent go = new Intent(Department2.this,
tablistclass_item.class);
if (!larg) {
go = new Intent(Department2.this, ListClass.class);
}
Bundle b = new Bundle();
b.putString("headername", nameofimage[position]);
b.putString("whichclass", "department");
go.putExtras(b);
startActivity(go);
}
});
}
现在如何page indicator
制作Gallery view