2. I have used a grid view in which every cell is a button. I want to
 change the image on click of a button. I try to use same state as
mentioned in your reply. but it has not worked.

I was creating a calendar and to display dates and displaying events
on a particular day on click of a day. i have used buttons. should i
use some other view. Image view or image button? or something else?
Will i be able to show display image for the clicked one.

 We have some need to display multiline text on Button and both line
> > having different font. We googled and find out it could be done using
> > HTML. is there any other way also?
Actually we want to create something like accordion. On click of
button one list will be open. on second click it will hide. For that
we have use it. Our requirement is to display two different
information(with different font size and color) on the button(or
someother view)

On Feb 17, 8:33 pm, Mark Murphy <[email protected]> wrote:
> On Thu, Feb 17, 2011 at 10:26 AM, cool.manish <[email protected]> wrote:
> > I have some more queries:
> > 1. My tab is displaying some text which consuming more than the
> > available space because of it on focused tab text is scrolling. I want
> > to display this text as multiline. Is it possible?
>
> Use the version of setIndicator() that takes a View and design your
> own layout for the faces of the tabs.
>
> > 2. I have used a grid view in which every cell is a button. I want to
> > change the image on click of a button. I try to use same state as
> > mentioned in your reply. but it has not worked.
>
> It's not supposed to. There is no built-in state for "the button had
> been clicked sometime in the past century". If you want that logic,
> code it yourself.
>
> I am not quite certain why you are using buttons in a GridView in the
> first place, though. You will notice that the standard Android
> launcher uses a GridView without buttons.
>
> > 3. We have some need to display multiline text on Button and both line
> > having different font. We googled and find out it could be done using
> > HTML. is there any other way also?
>
> Use two separate TextViews, I suppose. I am having difficulty
> understanding your question.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 3.1 Available!

-- 
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

Reply via email to