我正在尝试制作ListView单个项目的高度,然后将其放在父视图的中心.这样,列表的顶部和底部滚动到视图的中心.问题出现时,我应用TouchDelegate的ListView,因此用户可以展开和从上面和下面的实际移动列表ListView.我可以点击ListView通过TouchDelegate但我无法向上和向下滑动或单击并拖动列表.只需点击它.
我是否必须为此创建一个GestureDetector或者我错过了一些简单的东西?
我有使用测试数据的按钮,但是有一种表格可以收集数量并使用下拉菜单设置标签。我需要在提交之前使用表单数据更新付款请求按钮。
我已将按钮初始化,它出现在我的Android设备上。文档准备好后,我将调用initPaymentRequest。
function initPaymentRequest(){
paymentRequest = stripe.paymentRequest({
country: 'US',
currency: 'usd',
total: {
label: 'Demo total',
amount: 1000,
},
});
prButton = elements.create('paymentRequestButton', {
paymentRequest: paymentRequest,
});
// Check the availability of the Payment Request API first.
paymentRequest.canMakePayment().then(function(result) {
if (result) {
log("Payment Request Available");
$(".ux-submit, #payment-request-button").addClass("col-xs-6");
prButton.mount('#payment-request-button');
} else {
log("Payment Request NOT Available");
$(".ux-submit, #payment-request-button").addClass("col-xs-6");
}
});
paymentRequest.on('click', updatePaymentRequest);
paymentRequest.on('token', function(ev) {
// Send the token to your server to charge it!
fetch('/charges', {
method: 'POST',
body: JSON.stringify({token: …Run Code Online (Sandbox Code Playgroud)