public PboGoToResultListViewHolder(View v, PboGoToResultListAdaptor adaptor) : base(v) { this.adaptor = adaptor; llContainer = v.FindViewById <LinearLayout>(Resource.Id.llContainer); tvFileTitle = v.FindViewById <TextView>(Resource.Id.tvFileTitle); tvGuideCardTitle = v.FindViewById <TextView>(Resource.Id.tvGuideCardTitle); llContainer.SetOnClickListener(new OnItemClickListener(this)); }
public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Dialog.RequestWindowFeature((int)WindowFeatures.NoTitle); Dialog.SetCanceledOnTouchOutside(true); var vwPboGoToPage = inflater.Inflate(Resource.Layout.contentpage_pbogotopage_popup, container); tvPageNum = vwPboGoToPage.FindViewById <TextView>(Resource.Id.tvPageNum); btn0 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn0); btn1 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn1); btn2 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn2); btn3 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn3); btn4 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn4); btn5 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn5); btn6 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn6); btn7 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn7); btn8 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn8); btn9 = vwPboGoToPage.FindViewById <Button>(Resource.Id.btn9); ivDel = vwPboGoToPage.FindViewById <ImageView>(Resource.Id.ivDel); btnDone = vwPboGoToPage.FindViewById <Button>(Resource.Id.btnDone); rcSearchResult = vwPboGoToPage.FindViewById <RecyclerView>(Resource.Id.rcSearchResult); tvNoResultMessage = vwPboGoToPage.FindViewById <TextView>(Resource.Id.tvNoResultMessage); tvPageNum.Text = string.Empty; btn0.Click += OnBtnClick; btn1.Click += OnBtnClick; btn2.Click += OnBtnClick; btn3.Click += OnBtnClick; btn4.Click += OnBtnClick; btn5.Click += OnBtnClick; btn6.Click += OnBtnClick; btn7.Click += OnBtnClick; btn8.Click += OnBtnClick; btn9.Click += OnBtnClick; ivDel.Click += OnBtnClick; btnDone.Click += OnBtnClick; searchResultListLayoutManager = new LinearLayoutManager(Activity); searchResultListLayoutManager.Orientation = LinearLayoutManager.Vertical; rcSearchResult.SetLayoutManager(searchResultListLayoutManager); hrcAdaptor = new PboGoToResultListAdaptor( this, OnResultItemClick); rcSearchResult.SetAdapter(hrcAdaptor); var pageNum = Arguments.GetString(PageNumKey); if (!string.IsNullOrEmpty(pageNum)) { tvPageNum.Text = pageNum; OnPageNumChanged(); } return(vwPboGoToPage); }