Hi, after the update to mono develop 3.01  all my code that involve custom
list view items
make the applications crash.
It seems to be impossible to have a custom control like this (text box
inside a relative layout)

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:id="@+id/container_item"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TextView
        android:id="@+id/textItem"
        android:textSize="44sp"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />
</RelativeLayout>

If i remove the relativelayout the application run without problems but with
a relative layout parent
it always crashes without handling any exception.

My problem is that in most applications i have list views with custom
controls that has more than only one textview...so i need a relaivelayout
parent of all my controls (like the example below)

<RelativeLayout
        android:id="@+id/widget47"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        xmlns:android="http://schemas.android.com/apk/res/android";
        android:background="#ffffff"
        android:layout_marginTop="4dp"
        >
  <TextView
    android:id="@+id/faxto"
        android:textStyle="bold"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Numero"
    android:textSize="20sp"
    android:gravity="left"
    android:layout_alignParentTop="true"
    android:layout_alignParentLeft="true"
        android:textColor="#000000"
        android:layout_marginLeft="8dp"
                />
   <TextView
    android:id="@+id/testo_spedito"
        android:textStyle="bold"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Spedito"
    android:gravity="left"
    android:layout_marginTop="10dp"
    android:layout_below="@+id/faxto"
    android:layout_alignParentLeft="true"
        android:textColor="#000000"
        android:layout_marginLeft="8dp"
                />
  <TextView
    android:id="@+id/ora_spedizione"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="ora"
    android:gravity="left"
    android:layout_marginLeft="80dp"
    android:layout_below="@+id/faxto"
    android:layout_alignParentRight="true"
        android:textColor="#334F87"
    android:layout_marginRight="4dp"
                />
        <TextView
    android:id="@+id/data_spedizione"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Data"
    android:gravity="left"
    android:layout_marginLeft="130px"
    android:layout_alignParentRight="true"
    android:textColor="#334F87"
        android:layout_marginRight="4dp"
    />
  
</RelativeLayout>




--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Error-with-custom-layout-inside-listview-after-the-update-tp5709798.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to