custom view becomes invisible in xml layout
<p>I'm creating custom view derived from EditText. My view is declared as inner class like this:</p>

<pre><code>package com.woodshy.glucoXpert.DPass;

//...

public class DPassValuesEditActivity extends GenericScreenActivity {

//...

public static class DPassValuesEditField extends EditText {
    protected String mDbFieldName;


    public DPassValuesEditField(Context context) {
        super(context);
    }

    public DPassValuesEditField(Context context, AttributeSet attrs) {
        super(context, attrs);

        TypedArray a = context.obtainStyledAttributes(attrs,
                R.styleable.DPassValuesEditField);

        CharSequence s = a
                .getString(R.styleable.DPassValuesEditField_dbFieldName);
        if (s != null) {
            mDbFieldName = s.toString();
        }

    }

    //...
}
}
</code></pre>

<p>res/attrs.xml file looks like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
    &lt;declare-styleable name="DPassValuesEditField"&gt;
        &lt;attr name="dbFieldName" format="string" /&gt;
    &lt;/declare-styleable&gt;
&lt;/resources&gt;
</code></pre>

<p>I'm adding my custom view to xml layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res/com.woodshy.glucoXpert"
    android:id="@+id/LinearLayout01" android:layout_width="fill_parent"
    android:layout_height="fill_parent" android:orientation="vertical"&gt;
    &lt;ScrollView android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:layout_gravity="center_vertical"
        android:scrollbars="vertical"&gt;
        &lt;RelativeLayout android:id="@+id/editFielsdLayout"
            android:layout_height="fill_parent" android:layout_width="fill_parent"
            android:clickable="true"&gt;
            &lt;view
                class="com.woodshy.glucoXpert.DPass.DPassValuesEditActivity$DPassValuesEditField"
                android:id="@+id/edtWeight" android:layout_width="wrap_content"
                android:layout_height="wrap_content" android:width="75px"
                android:maxLines="1" android:layout_below="@+id/TextView01"
                android:lines="1" android:gravity="center" android:imeOptions="flagNoExtractUi"
                android:inputType="numberDecimal" android:maxLength="3"
                app:dbFieldName="Weight"&gt;&lt;/view&gt;

        &lt;/RelativeLayout&gt;


    &lt;/ScrollView&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>but I cant see it in visual editor (Eclipse SDK, Version: 3.6.1) while it appears in application in run-time and works fine.</p>

<p>Am I doing something wrong? How could I get my custom view visible in visual editor?</p>

<p>thanks.</p>
