调用不同的看法我有一个可扩展列表视图,并且父“组”行中包含的TextView“为名称”和进度“的RSSI”。现在它代表 信号健康RSSI可以是20%,40%,60%,80%或100%,并且进度条应指示信号的状况。 所以我创建5个progressbars与机器人的值:进度=“”,根据该信号强度不同。 为例, if the RSSI = -70; I should display the progre
我有一个AsyncTask查询数据库,然后返回boolean。 我试图在onPostExecute方法上设置进度条的可见性。我越来越 nullpointerexception: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object referenc