private void SetupChatStateView(BaseActivity activity) { this.chatStateSwitch = activity.FindViewById <SwitchCompat>(Resource.Id.switchChatState); this.chatStateSwitch.Click += ChatStateSwitch_Click; var chatStateLayout = activity.FindViewById <RelativeLayout>(Resource.Id.relLayoutChat); chatStateLayout.Click += ChatStateLayout_Click; }
private void SetHomeLocationViews(BaseActivity activity) { this.imgBtnHomeLocalization = activity.FindViewById <ImageButton>(Resource.Id.imgBtnHomeLocalization); this.imgBtnHomeLocalization.Click += ImgBtnHomeLocalization_Click; var homeLocLayout = activity.FindViewById <RelativeLayout>(Resource.Id.relLayoutHomeLocation); homeLocLayout.Click += ImgBtnHomeLocalization_Click; }
private void SetNotificationsSizesViews(BaseActivity activity) { this.imgBtnSizes = activity.FindViewById <ImageButton>(Resource.Id.imgBtnNotificationsSize); this.imgBtnSizes.Click += ImgBtnSizes_Click; var newsSizesLayout = activity.FindViewById <RelativeLayout>(Resource.Id.relLayoutNewsSizes); newsSizesLayout.Click += ImgBtnSizes_Click; }
private void SetupNotificationsStateView(BaseActivity activity) { this.notificationsStateSwitch = activity.FindViewById <SwitchCompat>(Resource.Id.switchNotificationsState); this.notificationsStateSwitch.Click += NotificationsStateSwitch_Click; var newsNotificationsLayout = activity.FindViewById <RelativeLayout>(Resource.Id.relLayoutNewsNotifications); newsNotificationsLayout.Click += NewsNotificationsLayout_Click; this.imgBtnRadius = activity.FindViewById <ImageButton>(Resource.Id.imgBtnRadius); imgBtnRadius.Click += ImgBtnRadius_Click; var newsRadiusLayout = activity.FindViewById <RelativeLayout>(Resource.Id.relLayoutNewsRadius); newsRadiusLayout.Click += ImgBtnRadius_Click; }
private void SetAppInfoViews(BaseActivity activity) { this.imgAppInfo = activity.FindViewById <ImageButton>(Resource.Id.imgAppInfo); this.imgAppInfo.Click += (s, e) => { var intent = new Intent(activity, typeof(AppInfoAndContactActivity)); activity.StartActivity(intent); }; var appInfoLayout = activity.FindViewById <RelativeLayout>(Resource.Id.relLayoutAppInfos); appInfoLayout.Click += (s, e) => { var intent = new Intent(activity, typeof(AppInfoAndContactActivity)); activity.StartActivity(intent); }; }
private void SetNotificationsCategoriesViews(BaseActivity activity) { this.imgBtnKeywords = activity.FindViewById <ImageButton>(Resource.Id.imgBtnKeywords); this.imgBtnKeywords.Click += async(sender, args) => { var userSelectesKeywordsNames = appSettings.Keywords.Select(k => k.Value).ToList(); await this.categoriesHelper.ShowCategoriesListAndMakeAction(userSelectesKeywordsNames, MethodToExecuteAfterCategoriesSelect); }; var newsCatLayout = activity.FindViewById <RelativeLayout>(Resource.Id.relLayoutNewsCategories); newsCatLayout.Click += async(sender, args) => { var userSelectesKeywordsNames = appSettings.Keywords.Select(k => k.Value).ToList(); await this.categoriesHelper.ShowCategoriesListAndMakeAction(userSelectesKeywordsNames, MethodToExecuteAfterCategoriesSelect); }; }
private void SetupViews(BaseActivity activity) { this.userProfilePhoto = activity.FindViewById <CircleImageView>(Resource.Id.profile_image); DisplayProfilePhoto(); userProfilePhoto.Click += UserProfilePhoto_Click; var imgBtnProfileImage = activity.FindViewById <ImageButton>(Resource.Id.imgBtnProfileImage); imgBtnProfileImage.Click += UserProfilePhoto_Click; this.textViewUserName = activity.FindViewById <TextView>(Resource.Id.textViewUserName); this.textViewNotificationsState = activity.FindViewById <TextView>(Resource.Id.textViewNotificationsState); this.textViewChatState = activity.FindViewById <TextView>(Resource.Id.textViewChatState); this.textViewNotificationsRadius = activity.FindViewById <TextView>(Resource.Id.textViewNotificationsRadius); this.textViewKeywords = activity.FindViewById <TextView>(Resource.Id.textViewKeywords); this.textViewNotificationsSizes = activity.FindViewById <TextView>(Resource.Id.textViewNotificationsSize); this.textViewHomeLocalization = activity.FindViewById <TextView>(Resource.Id.textViewHomeLocalization); SetupChatStateView(activity); SetupNotificationsStateView(activity); SetNotificationsCategoriesViews(activity); SetNotificationsSizesViews(activity); SetHomeLocationViews(activity); SetAppInfoViews(activity); }