示例#1
0
 public void MsgBoxButtons(String title, String msg, String button1name, String button2name, View.IOnClickListener btn1lst, View.IOnClickListener btn2lst)
 {
     invisible();
     Dialog.SetTitle(title);
     Button1.SetText(button1name, TextView.BufferType.Normal);
     Button2.SetText(button2name, TextView.BufferType.Normal);
     Text1.Visibility   = ViewStates.Visible;
     Button1.Visibility = ViewStates.Visible;
     Button2.Visibility = ViewStates.Visible;
     Button1.SetOnClickListener(btn1lst);
     Button2.SetOnClickListener(btn2lst);
     Text1.SetText(msg, TextView.BufferType.Normal);
     try
     {
         Dialog.Show();
     }
     catch (Exception err)
     {
         Log.Debug("xxx", err.Message);
     }
 }
        public RecyclerWiewHolder(View itemView) : base(itemView)
        {
            if (Preferences.Get("Sort", 1) == 1)
            {
                ImageView = itemView.FindViewById <WebView>(Resource.Id.webView1);
                TitleText = itemView.FindViewById <TextView>(Resource.Id.textView21);
                GanreText = itemView.FindViewById <TextView>(Resource.Id.textView22);
                MainText  = itemView.FindViewById <TextView>(Resource.Id.textView23);
                Button1   = itemView.FindViewById <Button>(Resource.Id.buttonItem);
                Button1.SetOnClickListener(this);
            }
            else
            {
                ImageView = itemView.FindViewById <WebView>(Resource.Id.webView2);
                TitleText = itemView.FindViewById <TextView>(Resource.Id.textView31);
                GanreText = itemView.FindViewById <TextView>(Resource.Id.textView32);
                Button2   = itemView.FindViewById <Button>(Resource.Id.buttonItemSort);
                Button2.SetOnClickListener(this);
            }

            ImageView.SetInitialScale(GetDisp());
        }