use of com.github.ksoichiro.android.observablescrollview.ObservableGridView in project UltimateAndroid by cymcsg.
the class ActionBarControlGridViewActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.observable_scroll_view_activity_actionbarcontrolgridview);
ObservableGridView gridView = (ObservableGridView) findViewById(R.id.grid);
gridView.setScrollViewCallbacks(this);
List<String> items = new ArrayList<String>();
for (int i = 1; i <= 100; i++) {
items.add("Item " + i);
}
gridView.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items));
}
Aggregations