Lines Matching defs:vh

328      * @param vh The view holder to be associated with the given action.
332 public void onBindViewHolder(ViewHolder vh, GuidedAction action) {
334 if (vh.mTitleView != null) {
335 vh.mTitleView.setText(action.getTitle());
337 if (vh.mDescriptionView != null) {
338 vh.mDescriptionView.setText(action.getDescription());
339 vh.mDescriptionView.setVisibility(TextUtils.isEmpty(action.getDescription()) ?
343 if (vh.mCheckmarkView != null && vh.mCheckmarkView.getVisibility() != View.GONE) {
344 vh.mCheckmarkView.setVisibility(action.isChecked() ? View.VISIBLE : View.INVISIBLE);
347 if (vh.mContentView != null) {
348 ViewGroup.LayoutParams contentLp = vh.mContentView.getLayoutParams();
349 if (setIcon(vh.mIconView, action)) {
354 vh.mContentView.setLayoutParams(contentLp);
357 if (vh.mChevronView != null) {
358 vh.mChevronView.setVisibility(action.hasNext() ? View.VISIBLE : View.INVISIBLE);
359 vh.mChevronView.setAlpha(action.isEnabled() ? mEnabledChevronAlpha :
364 if (vh.mTitleView != null) {
365 vh.mTitleView.setMaxLines(mTitleMaxLines);
366 if (vh.mDescriptionView != null) {
367 vh.mDescriptionView.setMaxHeight(getDescriptionMaxHeight(vh.view.getContext(),
368 vh.mTitleView));
372 if (vh.mTitleView != null) {
373 vh.mTitleView.setMaxLines(mTitleMinLines);
375 if (vh.mDescriptionView != null) {
376 vh.mDescriptionView.setMaxLines(mDescriptionMinLines);
384 * @param vh The view holder associated with the relevant action.
387 public void onAnimateItemFocused(ViewHolder vh, boolean focused) {
395 * @param vh The view holder associated with the relevant action.
398 public void onAnimateItemPressed(ViewHolder vh, boolean pressed) {
401 createAnimator(vh.view, attr).start();
407 * @param vh The view holder associated with the relevant action.
410 public void onAnimateItemChecked(ViewHolder vh, boolean checked) {
411 final View checkView = vh.mCheckmarkView;