Lines Matching defs:vh

160         ViewHolder vh = (ViewHolder) viewHolder;
161 onBindDescription(vh, item);
164 if (TextUtils.isEmpty(vh.mTitle.getText())) {
165 vh.mTitle.setVisibility(View.GONE);
168 vh.mTitle.setVisibility(View.VISIBLE);
169 vh.mTitle.setLineSpacing(vh.mTitleLineSpacing - vh.mTitle.getLineHeight() +
170 vh.mTitle.getLineSpacingExtra(), vh.mTitle.getLineSpacingMultiplier());
171 vh.mTitle.setMaxLines(vh.mTitleMaxLines);
173 setTopMargin(vh.mTitle, vh.mTitleMargin);
176 if (TextUtils.isEmpty(vh.mSubtitle.getText())) {
177 vh.mSubtitle.setVisibility(View.GONE);
180 vh.mSubtitle.setVisibility(View.VISIBLE);
182 setTopMargin(vh.mSubtitle, vh.mUnderTitleBaselineMargin +
183 vh.mSubtitleFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent);
185 setTopMargin(vh.mSubtitle, 0);
189 if (TextUtils.isEmpty(vh.mBody.getText())) {
190 vh.mBody.setVisibility(View.GONE);
192 vh.mBody.setVisibility(View.VISIBLE);
193 vh.mBody.setLineSpacing(vh.mBodyLineSpacing - vh.mBody.getLineHeight() +
194 vh.mBody.getLineSpacingExtra(), vh.mBody.getLineSpacingMultiplier());
197 setTopMargin(vh.mBody, vh.mUnderSubtitleBaselineMargin +
198 vh.mBodyFontMetricsInt.ascent - vh.mSubtitleFontMetricsInt.descent);
200 setTopMargin(vh.mBody, vh.mUnderTitleBaselineMargin +
201 vh.mBodyFontMetricsInt.ascent - vh.mTitleFontMetricsInt.descent);
203 setTopMargin(vh.mBody, 0);
212 * @param vh The ViewHolder for this details description view.
215 protected abstract void onBindDescription(ViewHolder vh, Object item);
224 ViewHolder vh = (ViewHolder) holder;
225 vh.addPreDrawListener();
231 ViewHolder vh = (ViewHolder) holder;
232 vh.removePreDrawListener();