哈哈哈QAQ
哈哈哈QAQ
  • 发布:2021-08-23 16:57
  • 更新:2022-02-26 10:01
  • 阅读:721

【 因为电视端APP只能用遥控器,是否可以用上下左右键控制文档翻页? - 2***@qq.com 】

分类:uni-app

因为电视端APP只能用遥控器,是否可以用上下左右键控制文档翻页?有没有好的解决方案,帮忙回复下吧,谢谢。

2021-08-23 16:57 负责人:无 分享
已邀请:
哈哈哈QAQ

哈哈哈QAQ (作者)

1.3 翻页、滚动及滚动条样式

  1. 包括快速向上、向下翻页

/**

  • Scrolls the contents of this WebView down by half the page size.
  • @param bottom true to jump to bottom of page
  • @return true if the page was scrolled
    **/
    mWebView. pageDown(boolean bottom)

/**

  • Scrolls the contents of this WebView up by half the view size.
  • @param top true to jump to the top of the page
  • @return true if the page was scrolled
    /
    mWebView. pageUp(boolean top)
    //滚动:
    mWebview.getView().scrollTo(x,y)
    /
  • 设置滚动条样式
    */
    //竖直快速滑块,设置null可去除
    mWebview.getX5WebViewExtension().setVerticalTrackDrawable (Drawable drawable)
    //判断水平滚动条是否启动
    mWebview.getX5WebViewExtension().isHorizontalScrollBarEnabled ()
    //启用或禁用水平滚动条
    mWebview.getX5WebViewExtension().setHorizontalScrollBarEnabled (boolean enabled)
    //判断竖直滚动条是否启动
    mWebview.getX5WebViewExtension().isVerticalScrollBarEnabled ()
    //启用或禁用竖直滚动条
    mWebview.getX5WebViewExtension().setVerticalScrollBarEnabled (boolean enabled)
    //设置滚动条渐隐消失的时间段
    mWebview.getX5WebViewExtension().setScrollBarFadeDuration(int duration)
    //设置滚动条多久开始渐隐消失
    mWebview.getX5WebViewExtension().setScrollBarDefaultDelayBeforeFade (int delay)
silianpan888

silianpan888 - Feel no regret for this life.

这是webview文档调用的是openfile

该问题目前已经被锁定, 无法添加新回复