Lines Matching refs:mode
109 * Returns the mode of the header view (Wide/Normal/Narrow) given the its
118 // Choose the correct mode based on view width.
119 int mode = NORMAL_MODE;
121 mode = WIDE_MODE;
123 return mode;
131 * Returns the layout id to be inflated in this mode.
133 private static int getLayoutId(int mode) {
134 switch (mode) {
140 throw new IllegalArgumentException("Unknown conversation header view mode " + mode);
156 * Returns the height of the view in this mode.
158 public static int getHeight(Context context, int mode) {
160 (mode == WIDE_MODE)
221 * Returns the length (maximum of characters) of subject in this mode.
223 public static int getSubjectLength(Context context, int mode) {
228 return SUBJECT_LENGTHS[mode];
250 int mode = getMode(context, width);
251 int height = getHeight(context, mode);
252 View view = LayoutInflater.from(context).inflate(getLayoutId(mode), null);