ProgressBar是否有xml属性来禁用用户交互?

时间:2018-08-15 20:15:33

标签: android user-interface android-progressbar

我阅读了有关在可见ProgressBar时禁用用户交互的问题:How to disable user interaction while ProgressBar is visible in android?。但是,难道没有一种“清洁”的方法吗?像在xml属性中一样?

1 个答案:

答案 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"

相关问题