Пример #1
0
 public void OnResult(SHARE_MEDIA media)
 {
     if (media == SHARE_MEDIA.WeixinFavorite)
     {
         AlertUtil.ToastShort(context, "Êղسɹ¦");
     }
     else
     {
         AlertUtil.ToastShort(context, "·ÖÏí³É¹¦");
     }
 }
Пример #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.layout1);
            toolbar       = FindViewById <Toolbar>(Resource.Id.toolbar);
            btn_tabStatus = toolbar.FindViewById <Button>(Resource.Id.btn_tabStatus);
            //btn_test =toolbar.FindViewById<Button>(Resource.Id.btn_test);



            btn_tabStatus.Click += (s, e) =>
            {
                AlertUtil.ToastShort(this, "123");
            };
        }
Пример #3
0
 //IShareBoardListener
 public void Onclick(SnsPlatform snsPlatform, SHARE_MEDIA media)
 {
     if (snsPlatform.MShowWord.Equals("ä¯ÀÀÆ÷´ò¿ª"))
     {
         try
         {
             Intent intent = new Intent(Intent.ActionView);
             intent.SetData(Android.Net.Uri.Parse(umWeb.ToUrl()));
             context.StartActivity(intent);
         }
         catch (System.Exception e)
         {
             AlertUtil.ToastShort(context, "ä¯ÀÀÆ÷´ò¿ªÊ§°Ü");
         }
     }
     else
     {
         new ShareAction(context).WithMedia(umWeb)
         .SetPlatform(media)
         .SetCallback(this)
         .Share();
     }
 }
Пример #4
0
 public void OnError(SHARE_MEDIA p0, Throwable p1)
 {
     AlertUtil.ToastShort(context, "·ÖÏíʧ°ÜÁË");
 }