Thanks Kostya. I got your point. However in my case as i am setting background, its kind of ok for me to use button or textview. my btn is also luking ok
my main prb is to change the image on click so tht usr cud knw which date has been clicked. even when i return from previous page the according to the result of the next activity, i want to hightlight tht particular day I can try to implement sm logic to change the color of the selected day. but it is difficult to change the color whn coming back frm the called activity(becaz i dont knw the image of the returned date). becaz depending upon day is holiday, or have a event, i am showing different image. So i was jst thinking to do this thing using xml. as Mark told, we can't apply state change logic in btn. Is there any other way? On Feb 17, 10:30 pm, Kostya Vasilyev <[email protected]> wrote: > 17.02.2011 20:03, cool.manish пишет: > > > Kostya, I know textview is also clickable. we can draw boundary its a > > new thing for me. > > I was just suggesting you could use compound drawable(s) to indicate > days with appointments, etc. It's an easy way to add small images to a > TextView. > > > but is there any reason to not to use button. > > will I be able achive changing image of selection. > > Code-wise, a Button is just a TextView with a custom background (set > with default style attributes), so no difference there. > > What I was getting it is - a grid filled with buttons that look like > buttons (grey rounded rectangles) probably doesn't look very nice. But I > suppose that's a matter of taste. > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

