阅读背景:

改变了顺序主要。现在我得到了ClassCastException

来源:互联网 

Using eclipse and the Android SDK, I managed a simple test app with a Button and a ProgressBar. All runs fine, except I did't want the ProgressBar to move the Button, when the ProgressBar was made visible, so just for testing I changed the order that they are defined in the res/layout/main.xml file (which uses a LinearLayout). Compiling and running I then get a ClassCastException at the "final ProgressBar ..." line below.Using eclipse and the Android SDK, I managed a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: