我目前遇到了问题:
我把两个Spinner放在同一个RelativeLayout中但是当我在我的android应用程序中点击第二个Spinner时,logcat会告诉我一个警告(cf example.png)。
你能解释一下这个警告并帮我解决吗? 提前谢谢,
这是activity_main.xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<Spinner
android:id="@+id/spinner1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true" />
<Spinner
android:id="@+id/spinner2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/spinner1"
android:layout_below="@+id/spinner1" />
</RelativeLayout>
logcat警告:
10-27 23:06:02.284: W/InputEventReceiver(30096): Attempted to finish an input event but the input event receiver has already been disposed.