SwipeHorizontalScrollView

Introduction: 仿同花顺自选股列表控件,可横向滚动,可拖拽显示隐藏 view
More: Author   ReportBugs   
Tags:

自定义的仿同花顺自选股控件,支持向右侧滑,联动滚动。

如何使用

详细介绍

  • app:needHideLeft="true|false"设置是否隐藏 firstView
  • app:needShadow="true|false"设置是否需要阴影
  • app:needVibrate="true|false"设置是否需要在折叠 or 展开触发震动效果
  • app:extendThreshold="70dp"设置展开的阈值
  • app:foldThreshold="60dp"设置折叠的阈值
  • app:needFixItemPosition="true|false"设置是否需要自动修正 item 的位置
  • HorizontalRecyclerView.recordX=-折叠 view 的 width设置默认进入页面的时候折叠的部分展开
  • HorizontalRecyclerView.dingColumn=columnIndex|null设置钉住某一列,null 为取消钉住(仿写懂车帝车型 PK 对比的钉住功能),记得重新调用一次 bindHeadScrollView 同步状态给头部
<com.loren.component.view.widget.SwipeHorizontalScrollView id="@+id/swipeHorizontalView">
...滚动的 view
</com.loren.component.view.widget.SwipeHorizontalScrollView>
<com.loren.component.view.widget.HorizontalRecyclerView
        android:id="@+id/rvStock"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:extendThreshold="70dp"
        app:foldThreshold="60dp"
        app:needVibrate="true"
        app:needHideLeft="true"
        app:needShadow="true" />

:camera_flash: Screenshots

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools