gpt4 book ai didi

com.zx.zxutils.views.SlideUp.ZXSlideUpBuilder类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 10:36:50 29 4
gpt4 key购买 nike

本文整理了Java中com.zx.zxutils.views.SlideUp.ZXSlideUpBuilder类的一些代码示例,展示了ZXSlideUpBuilder类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZXSlideUpBuilder类的具体详情如下:
包路径:com.zx.zxutils.views.SlideUp.ZXSlideUpBuilder
类名称:ZXSlideUpBuilder

ZXSlideUpBuilder介绍

暂无

代码示例

代码示例来源:origin: StannyBing/ZXUtils

private void resetSlideUp(int gravity) {
  zxSlideUp = new ZXSlideUpBuilder(cardView)
      .withListeners(this)
      .withStartGravity(gravity)
      .withGesturesEnabled(true)
      .withSlideFromOtherView(flBg)
      .withTouchableAreaDp(200)//可触碰滑动的长度
      .withLoggingEnabled(true)
      .withStartState(ZXSlideUp.State.HIDDEN)
      .build();
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * <p>Sets behavior of soft input</p>
 *
 * @param hide <b>(default - <b color="#EF6C00">false</b>)</b>
 */
public void setHideKeyboardWhenDisplayed(boolean hide) {
  mBuilder.withHideSoftInputWhenDisplayed(hide);
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * <p>Set touchable area <b>(in dp)</b> for interaction</p>
 *
 * @param touchableArea <b>(default - <b color="#EF6C00">300dp</b>)</b>
 */
public void setTouchableAreaDp(float touchableArea) {
  mBuilder.withTouchableAreaDp(touchableArea);
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * <p>Turning on/off debug logging</p>
 *
 * @param enabled <b>(default - <b color="#EF6C00">false</b>)</b>
 */
public void setLoggingEnabled(boolean enabled) {
  mBuilder.withLoggingEnabled(enabled);
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * <p>Turning on/off gestures</p>
 *
 * @param enabled <b>(default - <b color="#EF6C00">true</b>)</b>
 */
public void setGesturesEnabled(boolean enabled) {
  mBuilder.withGesturesEnabled(enabled);
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * <p>Define a {@link ZXSlideUp.Listener} for this ZXSlideUp</p>
 *
 * @param listeners array of listeners
 */
public ZXSlideUpBuilder withListeners(@NonNull ZXSlideUp.Listener... listeners) {
  List<ZXSlideUp.Listener> listeners_list = new ArrayList<>();
  Collections.addAll(listeners_list, listeners);
  return withListeners(listeners_list);
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * @param savedState parameters will be restored from this bundle, if it contains them
 */
public ZXSlideUpBuilder withSavedState(@Nullable Bundle savedState) {
  restoreParams(savedState);
  return this;
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * <p>Set duration of animation (whenever you use {@link #hide()} or {@link #show()} methods)</p>
 *
 * @param autoSlideDuration <b>(default - <b color="#EF6C00">300</b>)</b>
 */
public void setAutoSlideDuration(int autoSlideDuration) {
  mBuilder.withAutoSlideDuration(autoSlideDuration);
  mAnimationProcessor.paramsChanged();
}

代码示例来源:origin: StannyBing/ZXUtils

/**
 * <p>Sets interpolator for animation (whenever you use {@link #hide()} or {@link #show()} methods)</p>
 *
 * @param interpolator <b>(default - <b color="#EF6C00">Decelerate interpolator</b>)</b>
 */
public void setInterpolator(TimeInterpolator interpolator) {
  mBuilder.withInterpolator(interpolator);
  mAnimationProcessor.paramsChanged();
}

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com