The contacts at the beginning of the Android special symbol are merged into the "#"

Source: Internet
Author: User

In the Peopleactivity interface, the contact's display position is determined by the first character of its display name.
The contacts at the beginning of the number are displayed under the "#" header.
The Chinese and English contacts will appear under "A" to "Z".
Contacts that begin with a symbol do not have a corresponding header, which is displayed at the top, and how can I modify it to show them under the ' # ' sign?
The following method can be displayed under "#" (for symbols in general ASCII encoding)


JB Version:
Contactsprovider2.java (packages\providers\contactsprovider\src\com\android\providers\contacts)
The following statement is in the Getfastscrollingindexextras function:
if (title = = null) {
title = "";
}
Modified to: if (title = = null) {
title = "#";
}

KK Version:
Contactlocaleutils.java (alps\packages\providers\contactsprovider\src\com\android\providers\contacts)
Contactlocaleutilsbase Inner class

Public String getbucketlabel (int bucketindex) {
if (Bucketindex < 0 | | bucketindex >= getbucketcount ()) {
return empty_string; Change here to return number_string;
} else if (Bucketindex = = Mnumberbucketindex) {
return number_string;
} else if (Bucketindex > Mnumberbucketindex) {
--bucketindex;
}
Return Malphabeticindex.getbucketlabel (Bucketindex);
}

The contacts at the beginning of the Android special symbol are merged into the "#"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.