Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am new in android, i have created alert dialog box on that i kept check boxes for selecting multiple week days, after checking days on check box i need to set those selected days to text view. I searched a lot for that but i don't found satisfactory answer please anyone can help me resolve this issue. Thanks in advance

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
177 views
Welcome To Ask or Share your Answers For Others

1 Answer

try this

if(checkBox.isSelected()){
String s = checkBox.getText().toString();
}

This way you can get Value of all of you checkbox.

At last you can set that string value to your textview.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...