Editing layout in Android -


i have 2 questions :

i developing part of android app , in main activity added 2 text fields , 1 button , trying call them id shown below :

send = (button)findviewbyid(r.id.send)   // giving error in send  studentname=(edittext)findviewbyid(r.id.edittext);   // giving error in edittext  

and added onclicklistener button , shown below :

send.setonclicklistener(new onclicklistener() {              @override             public void onclick(view v) {                 job = new myjob();                 job.execute();             }         }); 

i added both send (my button , textfields) in r.java not accepting them because modification done manually . added import android.r , did not solve problem .

my second question :

i trying edit layout (graphically) not know how show in eclipse !!!

please me , sorry if questions stupid .

import android.r 

android.r resources android package. tyou need import your.package.r


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -