CreateResource(layout, layout1.xml,
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:orientation="vertical" >
<EditText android:tag="EditText1" android:id="@+id/edittext1"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:textCursorDrawable="@drawable/my_custom_cursor_drawable"
/>
</LinearLayout>
)
CreateResource(drawable, my_custom_cursor_drawable.xml ,
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<size android:width="5dp" />
<solid android:color="#FFFF0000"/>
</shape>
)