public S hasFocusedChild(View view) { isNotNull(); View actualView = actual.getFocusedChild(); assertThat(actualView) // .overridingErrorMessage("Expected focused child <%s> but was <%s>", view, actualView) // .isSameAs(view); return myself; }
public void onScrollStateChanged(RecyclerView recyclerView, int newState) { if (newState == 0) { int selectorHeight = this.mSelectorView.getHeight(); if (selectorHeight == 0) { LayoutParams lp = this.mSelectorView.getLayoutParams(); selectorHeight = this.mSelectorView.getContext().getResources().getDimensionPixelSize(R.dimen.lb_action_fragment_selector_min_height); lp.height = selectorHeight; this.mSelectorView.setLayoutParams(lp); } View focusedChild = this.mParentView.getFocusedChild(); if (focusedChild != null) { float scaleY = ((float) focusedChild.getHeight()) / ((float) selectorHeight); ViewPropertyAnimator animation = this.mSelectorView.animate().alpha(1.0f).setListener(new Listener(false)).setDuration((long) this.mAnimationDuration).setInterpolator(new DecelerateInterpolator(2.0f)); if (this.mFadedOut) { this.mSelectorView.setScaleY(scaleY); } else { animation.scaleY(scaleY); } animation.start(); return; } return; } this.mSelectorView.animate().alpha(0.0f).setDuration((long) this.mAnimationDuration).setInterpolator(new DecelerateInterpolator(2.0f)).setListener(new Listener(true)).start(); } }
public S hasFocusedChild(View view) { isNotNull(); View actualView = actual.getFocusedChild(); assertThat(actualView) // .overridingErrorMessage("Expected focused child <%s> but was <%s>", view, actualView) // .isSameAs(view); return myself; }
String clicked_or_touch_letter_for_formation_by_user = (String) v.getFocusedChild().getTag();
data.put("FocusedChild", String.valueOf(vg.getFocusedChild())); data.put("LayoutAnimation", String.valueOf(vg.getLayoutAnimation())); data.put("LayoutAnimationListener", String.valueOf(vg.getLayoutAnimationListener()));