@Override
  public void onAttachedToWindow() {
    super.onAttachedToWindow();
    mSaveView.setVisibility(View.VISIBLE);
    mShareView.setVisibility(View.VISIBLE);
    String sharekey = ShareSDKManager.getInstance().getCurrentSDK().getClass().getSimpleName();
    if (TextUtils.isEmpty(sharekey) || sharekey.equals("NullShareImpl")) {
      mShareView.setVisibility(View.GONE);
    }
    if (!isReportable()) {
      mReportView.setVisibility(View.GONE);
      mReportUser.setVisibility(View.GONE);
    }
    if (!isDeleteable()) {
      mDeleteView.setVisibility(View.GONE);
      mReportView.setVisibility(View.VISIBLE);
    } else {
      mDeleteView.setBackgroundColor(Color.WHITE);
      mReportView.setVisibility(View.GONE);
      //            mReportUser.setVisibility(View.GONE);
    }
    //        if(!isController()){
    mSetRecommened.setVisibility(View.GONE);
    //        }

  }
 private void shareToSns(Activity activity) {
   ShareContent shareItem = new ShareContent();
   shareItem.mText = mFeedItem.text;
   List<ImageItem> imageItems = mFeedItem.imageUrls;
   if (mFeedItem.sourceFeed != null) {
     imageItems = mFeedItem.sourceFeed.imageUrls;
   }
   if (imageItems.size() > 0) {
     shareItem.mImageItem = imageItems.get(0);
   }
   shareItem.mTargetUrl = mFeedItem.shareLink;
   if (TextUtils.isEmpty(shareItem.mTargetUrl) && mFeedItem.sourceFeed != null) {
     shareItem.mTargetUrl = mFeedItem.sourceFeed.shareLink;
   }
   shareItem.mFeedId = mFeedItem.id;
   shareItem.mTitle = mFeedItem.sourceFeed == null ? mFeedItem.text : mFeedItem.sourceFeed.text;
   ShareSDKManager.getInstance().getCurrentSDK().share(activity, shareItem);
 }