Android Open Source - ShareSDKShareDifMsgDemo-Android Pic Viewer






From Project

Back to project page ShareSDKShareDifMsgDemo-Android.

License

The source code is released under:

MIT License

If you think the Android project ShareSDKShareDifMsgDemo-Android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * ????:http://www.mob.com/*from  www  .ja va  2 s .  c  o  m*/
 * ?????QQ: 4006852216
 * ????:ShareSDK   ??????????????????????????????????????????????????????????????????????????????24??????????
 *
 * Copyright (c) 2013? mob.com. All rights reserved.
 */


package cn.sharesdk.onekeyshare;

import android.graphics.Bitmap;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import cn.sharesdk.framework.FakeActivity;

/** ??????????????? */
public class PicViewer extends FakeActivity implements OnClickListener {
  private ImageView ivViewer;
  private Bitmap pic;

  /** ????????? */
  public void setImageBitmap(Bitmap pic) {
    this.pic = pic;
    if (ivViewer != null) {
      ivViewer.setImageBitmap(pic);
    }
  }

  public void onCreate() {
    ivViewer = new ImageView(activity);
    ivViewer.setScaleType(ScaleType.CENTER_INSIDE);
    ivViewer.setBackgroundColor(0xc0000000);
    ivViewer.setOnClickListener(this);
    activity.setContentView(ivViewer);
    if (pic != null && !pic.isRecycled()) {
      ivViewer.setImageBitmap(pic);
    }
  }

  public void onClick(View v) {
    finish();
  }

}




Java Source Code List

cn.sharesdk.demo.tpl.MainActivity.java
cn.sharesdk.demo.tpl.ShareContentCustomizeDemo.java
cn.sharesdk.demo.tpl.wxapi.WXEntryActivity.java
cn.sharesdk.onekeyshare.CustomerLogo.java
cn.sharesdk.onekeyshare.EditPage.java
cn.sharesdk.onekeyshare.FollowList.java
cn.sharesdk.onekeyshare.OnekeyShare.java
cn.sharesdk.onekeyshare.PicViewer.java
cn.sharesdk.onekeyshare.PlatformGridView.java
cn.sharesdk.onekeyshare.Shake2Share.java
cn.sharesdk.onekeyshare.ShareContentCustomizeCallback.java
cn.sharesdk.onekeyshare.ShareCore.java