加載SmartImageView
後,如何觸發spinner.setVisibility(View.GONE);
?如何在加載SmartImageView之前顯示佈局的進度條
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity);
mUrl = getIntent().getStringExtra(URL);
Image = (SmartImageView) findViewById(R.id.ivP);
final ProgressBar spinner = (ProgressBar) findViewById(R.id.loading);
spinner.setVisibility(View.VISIBLE);
Image.setImageUrl(mUrl);
spinner.setVisibility(View.GONE);
}
嗨,想你,我嘗試過,但我做不到。你能寫出所有的代碼嗎?^_^ – user3245604
有沒有人發現如何做到這一點呢?似乎沒有處理程序。似乎沒有選項在參數中添加此選項。 – Garbit