Edit text by using canvas in android

view story

http://stackoverflow.com – In my application i have 1 activity class,for that activity class i have set the layout ,which is another class file not "Xml File". In that class file i am tried to place a "Edit text",it coming but when i tried to locate to particular "Co-ordinates " its not setting.I tried a lot of post in "SO" but still i can't get that. My code: Activity: public class MainActivity extends Activity { HomeDesign hm; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); hm = new HomeDesign(this); setContentView(hm); // (HowTos)