Hi,

instead of referring the custom widget by a fully qualified class
name, is it possible to map with a shorter name. Like it happens in
ant custom tasks (though properties file).

i.e instead of

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/layout"
    >
<com.vternal.papp.VternalTestPreview
    android:id="@+id/camerascreen"
    android:layout_marginTop="20dip"
    android:layout_width="240px"
    android:layout_height="160px"/>
</LinearLayout>

write like this

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/layout"
    >

//see the tag name change it has no package name and also is not same
as class name
<VternalPreview
    android:id="@+id/camerascreen"
    android:layout_marginTop="20dip"
    android:layout_width="240px"
    android:layout_height="160px"/>
</LinearLayout>

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com

-- 
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