javascript - Android 版格子链接

标签 javascript android webview android-webview plaid

我想使用Plaid Android 应用程序上的链接。我尝试在 WebView 中嵌入一些 javascript,如 tutorial 中所示:

<form id="some-id" method="POST" action="/authenticate"></form>

<!-- To use Link with longtail institutions on Connect, set the
data-longtail attribute to 'true'. See the Parameter Reference for
additional documentation. -->
<script
        src="https://cdn.plaid.com/link/stable/link-initialize.js"
        data-client-name="Client Name"
        data-form-id="some-id"
        data-key="test_key"
        data-product="auth"
        data-env="tartan">
</script>

但是 UI 似乎被剪切了 - 框架太小,整个 UI 需要滚动: enter image description here

有什么可以解决这个问题吗?

最佳答案

我相信这个问题的答案是您需要请求/设置 Webview 的高度和宽度,否则它不会填充父级。如果您没有将其设置得足够大,则会切断格子链接页面。

关于javascript - Android 版格子链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37387261/

相关文章:

javascript - 加载后的 iframe javascript

javascript - 每秒调用 javascript 函数

javascript - 使用 jQuery 获取标签内的文本

android - Android 中的 3D 饼图

android - 从SD卡读取图像返回空OpenCV

android - 将 webview 转换为位图

javascript - 替代 HTML5 进度条

android - 如何在 ShinobiCharts 中显示网格线

html - ~200ms 触摸(点击)延迟在 Cordova 但不是在浏览器或 PWA

java - 使用 Javascript 从 WebView 调用 Activity 的方法