我阅读了有关在可见ProgressBar时禁用用户交互的问题:How to disable user interaction while ProgressBar is visible in android?。但是,难道没有一种“清洁”的方法吗?像在xml属性中一样?
答案 0 :(得分:0)
在您的const makeProm = () => new Promise(resolve => setTimeout(resolve, 1000, 'resolveValue'));
Promise.resolve()
.then(() => {
const prom = makeProm();
const otherValue = 'foo';
return Promise.all([prom, otherValue]);
})
.then(([resolveValue, otherValue]) => {
console.log(resolveValue, otherValue);
});
xml中设置android:clickable="true"