Android 选择ISTEXT时出现错误的文本

Android 选择ISTEXT时出现错误的文本,android,xamarin.android,Android,Xamarin.android,我有一个自定义视图,它派生自LinearLayout,并在构造函数中膨胀以下xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" an

我有一个自定义视图,它派生自LinearLayout,并在构造函数中膨胀以下xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <TextView
        android:id="@+id/title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Title" />
    <TextView
        android:id="@+id/value"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:textIsSelectable="true"
        android:text="Value" />
</LinearLayout>

此视图在“我的活动”中包含两次(或更多次)。我还替换了视图构造函数中的字符串“Title”和“Value”,因此对于视图的两个实例,它们可能是“title1”/“value1”和“title2”/“value2”

我以为这是工作的预期,直到我旋转我的手机(我还需要确保活动得到了这个过程中的破坏)。重新创建活动后,第一个值文本是“value2”,而不是“value1”

我发现这个问题来自文本IsSelectable。当我删除该属性时,它工作正常

我的目标是API级别14,该属性只是layout-v14文件夹的一部分。如果我以编程方式设置属性也是一样的

还有其他人经历过吗?你知道解决这个问题的办法吗


请注意,我正在使用Android版Mono-不确定这是否是一个bug?

为什么不在设备旋转时保存状态,并在完成后重新加载?