Home | History | Annotate | Download | only in gridviewpager

Lines Matching refs:Row

38  * Constructs fragments as requested by the GridViewPager. For each row a different background is
49 private List<Row> mRows;
58 mRows = new ArrayList<SampleGridPagerAdapter.Row>();
60 mRows.add(new Row(cardFragment(R.string.welcome_title, R.string.welcome_text)));
61 mRows.add(new Row(cardFragment(R.string.about_title, R.string.about_text)));
62 mRows.add(new Row(
65 mRows.add(new Row(
68 mRows.add(new Row(new CustomFragment()));
69 mRows.add(new Row(cardFragment(R.string.dismiss_title, R.string.dismiss_text)));
76 protected Drawable create(final Integer row) {
77 int resid = BG_IMAGES[row % BG_IMAGES.length];
85 mRowBackgrounds.put(row, background);
86 notifyRowBackgroundChanged(row);
97 // place bugdroid as the background at row 2, column 1
135 /** A convenient container for a row of fragments. */
136 private class Row {
139 public Row(Fragment... fragments) {
159 public Fragment getFragment(int row, int col) {
160 Row adapterRow = mRows.get(row);
165 public Drawable getBackgroundForRow(final int row) {
166 return mRowBackgrounds.get(row);
170 public Drawable getBackgroundForPage(final int row, final int column) {
171 return mPageBackgrounds.get(new Point(column, row));