I have a problem resolving the id of a custom made view:

from the following layout I try to get the first view doing,

     mName= (LabelledEditTextWithUnits) findViewById
(R.id.areaname);

but I get the second!!

any idea on whether this is a bug or I am doing anything wrong?

thanks.

<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android";
  xmlns:abc="http://schemas.android.com/apk/res/com.lailo.doendo";
  android:layout_height="fill_parent"
  android:orientation="vertical"
  android:layout_width="fill_parent">

        <com.foo.bar.LabelledEditTextWithUnits
                        android:id="@+id/areaname"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
                        android:padding="5px"
                        abc:textlabel="Label Name"/>

        <com.foo.bar.LabelledEditTextWithUnits
                        android:id="@+id/other_stuff"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
                        android:padding="5px"
                        abc:textunits="Kg"
                        abc:textlabel="Weight"/>
</LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to