Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User UrNeighbour's Avatar
    Join Date
    Nov 2009
    Posts
    33
    各位朋友:
    我是在第五版手机上进行程序开发的,程序有一个列表和一个搜索框,搜索框用来搜索列表中的列表项,比如列表中有五个数据
    刘备
    曹操
    孙权
    曹丕
    张飞

    当我点击搜索框要查找某个人的时候,搜索框会弹出输入对话框,但是发现此时的输入对话框包含了所有的字母,从a~z,能不能像通信录的那个搜索框那样,只显示部分字母,比如上面的例子,应该只显示c、l、s、z,即曹、刘、孙、张拼音的首字母,而不会显示a、b、c、d、...z呢?

  2. #2
    Nokia Developer Champion chenziteng's Avatar
    Join Date
    May 2004
    Posts
    2,265
    Hi,

    You should enable the adaptive search (CAknSearchField::EAdaptive) on your search field control, and then it will work as you expected. Note that the feature is also controlled by a system-wide setting ("Main menu"->"Settings"->"Phone"->"Touch input"->"Adaptive search") which by default is "On".

    "Working with Adaptive Search feature - S60 Touch UI"
    http://wiki.forum.nokia.com/index.ph...-_S60_Touch_UI

    Regards

    Ziteng Chen

  3. #3
    Registered User UrNeighbour's Avatar
    Join Date
    Nov 2009
    Posts
    33
    Quote Originally Posted by chenziteng View Post
    Hi,

    You should enable the adaptive search (CAknSearchField::EAdaptive) on your search field control, and then it will work as you expected. Note that the feature is also controlled by a system-wide setting ("Main menu"->"Settings"->"Phone"->"Touch input"->"Adaptive search") which by default is "On".

    "Working with Adaptive Search feature - S60 Touch UI"
    http://wiki.forum.nokia.com/index.ph...-_S60_Touch_UI

    Regards

    Ziteng Chen
    多谢子腾兄,我试试看

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved