You can put an on click listener on a text view (this is a basic feature of
view), but please don't go digging through the view hierarchy for the title
bar text view; this is an implementation detail of the window decorations.

If you want a special title bar, I would recommend just doing your own
custom title bar.  Alternatively, you can also supply your own custom view
for the title area, but I think there is padding above and below the view so
it would be even harder to hit.

2009/4/20 Joe LaPenna <[email protected]>

> Miloh,
>
> For a simple solution, you could request the no titlebar window deature and
> place a textview at the top of your layout.
>
> I'm not sure off the top of my head if you can attach a onclicklistener to
> a text view thouhgh. Probably not in which case for usability testing
> putting a button there would help you realize if that feature is
> discoverable or perhaps if a classic menu button is more discoverable.
>
> On Apr 20, 2009 2:13 AM, "milton" <[email protected]> wrote:
>
>
> Hi Dianne
>
> Thanks for your comment.
> But is there any possible way to hack current title bar to try it ?
> (Ignoring the title bar height issue)
>
> Thanks again.
>
> Regards
> Milton
>
> On 4月20日, 下午4時19分, Dianne Hackborn <[email protected]> wrote: > This
> probably isn't going to be t...
>
> > On Sun, Apr 19, 2009 at 8:38 PM, milton <[email protected]>
> wrote: > > > Hi all > > > I w...
> > [email protected]
>
> > > Note: please don't send private questions to me, as I don't have time
> to > provide private suppo...
> > answer them.- 隱藏被引用文字 -
> >
> > - 顯示被引用文字 -
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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