Silicon Valley Social Media 8-contact list page, Silicon Valley Social Media 8-Contact

Source: Internet
Author: User

Silicon Valley Social Media 8-contact list page, Silicon Valley Social Media 8-Contact

1. Is there any red dot setting for the invitation information?

// Obtain whether there is any new invitation information. boolean is_notify = SpUtils. getInstace (IMApplication. getGlobalApplication (). getBoolean (SpUtils. IS_INVITE_NOTIY, false); required (is_notify? View. VISIBLE: View. GONE );

 

2. Broadcast of registration contact invitation information changes

Private BroadcastReceiver InviteChangedReceiver = new BroadcastReceiver () {@ Override public void onReceive (Context context, Intent intent) {// display the red dot iv_contact_policy.setvisibility (View. VISIBLE); // Save the SpUtils in the red dot state. getInstace (IMApplication. getGlobalApplication ()). save (SpUtils. IS_INVITE_NOTIY, true );}};

 

 

3. Click events to invite information entries

// Click Event ll_contact_invite.setOnClickListener (new View. onClickListener () {@ Overridepublic void onClick (View v) {// disappears the red dot iv_contact_policy.setvisibility (View. GONE); // Save the red dot status SpUtils. getInstace (IMApplication. getGlobalApplication ()). save (SpUtils. IS_INVITE_NOTIY, false); // The Intent intent = new Intent (getActivity (), inviteaciti.pdf page appears. class); getActivity (). startActivity (intent );}});

  

 

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.