Lines Matching defs:mode
61 // The display mode (MODE_GRID, MODE_LIST, etc).
67 * @param mode MODE_GRID or MODE_LIST
69 public IconHelper(Context context, int mode) {
71 setViewMode(mode);
86 * Sets the current display mode. This affects the thumbnail sizes that are loaded.
87 * @param mode See {@link State.MODE_LIST} and {@link State.MODE_GRID}.
89 public void setViewMode(@ViewMode int mode) {
90 mMode = mode;
91 int thumbSize = getThumbSize(mode);
96 private int getThumbSize(int mode) {
98 switch (mode) {
107 throw new IllegalArgumentException("Unsupported layout mode: " + mode);