一些视图已经在XML文件中,如imageview、drawables等,而其他视图则在Retrofit成功响应后填充数据。XML文件还包含一个工具栏和progressbar。当数据来自服务器时,我只想显示工具栏和Progressbar,并隐藏其他内容。但问题是我不能隐藏整个视图,因为它包含一个工具栏和进度条本身。 我该怎么办? ? ? which is fixed at the bottom I also want to hide this --
随着Android和AppCompat-v7中新的Toolbar API的出现,它们正在删除许多自动特性,以使Toolbar/ActionBar更加健壮。其中之一就是进度条。因为工具栏只是一个ViewGroup,所以我认为添加一个ProgressBar很简单。然而,我似乎无法使它正常工作。and set the drawable to the SmoothProgressBar drawable
ProgressBarprogressBar = new ProgressBar<