public Animation getInAnimation() { int res = (inAnimation == INVALID) ? Utils.getAnimationResource(this.gravity, true) : inAnimation; return AnimationUtils.loadAnimation(context, res); }
public int getDefaultContentHeight() { Activity activity = (Activity) context; Display display = activity.getWindowManager().getDefaultDisplay(); int displayHeight = display.getHeight() - Utils.getStatusBarHeight(activity); if (defaultContentHeight == 0) { defaultContentHeight = (displayHeight * 2) / 5; } return defaultContentHeight; }
@Nullable public View getFooterView() { return Utils.getView(context, footerViewResourceId, footerView); }
Utils.animateContent(contentContainer, displayHeight, new SimpleAnimationListener() { @Override public void onAnimationEnd(Animation animation) { fullScreen = true; Utils.animateContent(contentContainer, displayHeight, new SimpleAnimationListener() { @Override public void onAnimationEnd(Animation animation) { fullScreen = true; Utils.animateContent(contentContainer, defaultContentHeight, new SimpleAnimationListener()); return; Utils.animateContent(contentContainer, defaultContentHeight, new SimpleAnimationListener());
if (!(!scrollUp && Utils.listIsAtTop(absListView)) && fullScreen) { return false;
private void initExpandAnimator(Activity activity, int defaultHeight, int gravity) { Display display = activity.getWindowManager().getDefaultDisplay(); int displayHeight = display.getHeight() - Utils.getStatusBarHeight(activity); if (defaultHeight == 0) { defaultHeight = (displayHeight * 2) / 5; } final View view = holder.getInflatedView(); if (!(view instanceof AbsListView)) { return; } final AbsListView absListView = (AbsListView) view; view.setOnTouchListener(ExpandTouchListener.newListener( activity, absListView, contentContainer, gravity, displayHeight, defaultHeight )); }
public Animation getOutAnimation() { int res = (outAnimation == INVALID) ? Utils.getAnimationResource(this.gravity, false) : outAnimation; return AnimationUtils.loadAnimation(context, res); }
@Nullable public View getHeaderView() { return Utils.getView(context, headerViewResourceId, headerView); }