java - Can ProgressBar be loaded dynamically? -


when use linearlayout.addview(progressdialog); eclipse gives me error message:

the method addview(view) in type viewgroup not applicable arguments (progressdialog)

but watch api , find that

progressbar extends view java.lang.object android.view.view android.widget.progressbar

your question has answer.

progressbar extends view java.lang.object android.view.view android.widget.progressbar

but adding progressdialog, if add progressbar, allow add view.

dialog cannot added view in layout.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -