我对 Activity 内部的微调器有问题, Activity 组的子项。 当我点击 spinner 时,它没有展开并且出现“Force Close”窗口 我检查了 Logcat 并捕获了“BadTokenException”,见下文:
http://i227.photobucket.com/albums/dd299/lavender-90/stackflow.jpg
我的 XML:
<Spinner
android:id="@+id/aroundSP"
android:layout_height="wrap_content"
android:prompt="@string/touraround"
android:layout_width="fill_parent"
android:entries="@array/Triparound"
android:layout_marginTop="250dip"
android:layout_marginLeft="4dip"
style="@style/ContentTitle">
</Spinner>
谢谢大家!
最佳答案
这很好用。
View viewToLoad = LayoutInflater.from(this.getParent()).inflate(
R.layout.marketlist, null);
this.setContentView(viewToLoad);
关于android - ActivityGroup 子项中的微调器不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6049496/