CheckBox checkBox = new CheckBox(activity);
CheckBox.setText("Hello");
I tried to set the text after a check box as above. But it didnt show me anything. Any suggestions ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First : you try to set the Text using the name of the class
CheckBox???it should be the instance
checkBox, like this :Second :
did you try to add your checkBox to your Activity Content like this ??
EDIT: : refer this , may be it will help you