public CategoriesSelectingHelper(Context ctx, string bearerToken)
        {
            this.ctx = ctx;
            this.progressDialogHelper = new ProgressDialogHelper(ctx);
            var token = bearerToken;

            this.categoryService = new CategoryService(token);
        }
		private void SetupViews() {
			this.progress = new ProgressDialogHelper(this);
			this.distanceTextView = FindViewById<TextView>(Resource.Id.distanceDetailsTextView);
			this.sellerNetworkStateInfoTextView = FindViewById<TextView>(Resource.Id.sellerNetworkState);
			this.forSellOrChangeInfoTextView = FindViewById<TextView>(Resource.Id.forSellOrChangeInfo);
			this.startConversationBtn = FindViewById<Button>(Resource.Id.startConvesationBtn);
			this.photoView = FindViewById<ImageView>(Resource.Id.advertisementDetailsPhoto);
			this.price = FindViewById<TextView>(Resource.Id.advertisementDeatilsPrice);
			this.title = FindViewById<TextView>(Resource.Id.advertisementDetailsTitle);
			this.description = FindViewById<TextView>(Resource.Id.advertisementDetailsDescription);
			this.showOtherAdvertisementsBtn = FindViewById<Button>(Resource.Id.showOtherUserAdvertisementsBtn);
		}
示例#3
0
 public SizeSelectingHelper(Context ctx)
 {
     this.ctx = ctx;
     this.progressDialogHelper = new ProgressDialogHelper(ctx);
 }
		private async Task SetupViews(bool screenOrientationChaged)
		{
			progress = new ProgressDialogHelper(this);
			SetupFab();
			advertisementsRecyclerView = FindViewById<RecyclerView>(Resource.Id.advertisementsRecyclerView);
			var mLayoutManager = new LinearLayoutManager(this);
			advertisementsRecyclerView.SetLayoutManager(mLayoutManager);
			await DownloadAndShowAdvertisements(screenOrientationChaged ? false : true, screenOrientationChaged);
		}
		private void SetupViews(Bundle savedInstanceState) {
			rdBtnOnlyForSell = (RadioButton)FindViewById(Resource.Id.rdBtnOnlyForSell);
			progress = new ProgressDialogHelper(this);
			advertisementTitle = (EditText)FindViewById(Resource.Id.editTextTitle);
			advertisementDescription = (EditText)FindViewById(Resource.Id.editTextDescription);
			advertisementPrice = (EditText)FindViewById(Resource.Id.editTextPrice);
			mPhotoView1 = (ImageView)FindViewById(Resource.Id.photoView1);
			mButtonTakePicture = (Button)FindViewById(Resource.Id.buttonTakePicture);
			buttonPublishAdvertisement = FindViewById<Button>(Resource.Id.buttonPublishAdvertisemenetItem);

			buttonPublishAdvertisement.Click += ButtonPublishAdvertisement_Click;
			mButtonTakePicture.Click += MButtonTakePicture_Click;
		}