public override View OnCreateView (LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle)
		{
			var frame = (FrameLayout)layoutInflater.Inflate(Resource.Layout.zxingscannerfragmentlayout, null);

			var layoutParams = new LinearLayout.LayoutParams (ViewGroup.LayoutParams.FillParent, ViewGroup.LayoutParams.FillParent);
							
			try
			{
				scanner = new ZXingSurfaceView (this.Activity, ScanningOptions, callback);
				frame.AddView(scanner, layoutParams);


				if (!UseCustomView)
				{
					zxingOverlay = new ZxingOverlayView (this.Activity);
					zxingOverlay.TopText = TopText ?? "";
					zxingOverlay.BottomText = BottomText ?? "";

					frame.AddView (zxingOverlay, layoutParams);
				}
				else if (CustomOverlayView != null)
				{
					frame.AddView(CustomOverlayView, layoutParams);
				}
			}
			catch (Exception ex)
			{
				Console.WriteLine ("Create Surface View Failed: " + ex);
			}
			return frame;
		}
Beispiel #2
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            oldValue = Vm.Tab;
            if (_view != null)
            {
                return(_view);
            }
            _view  = inflater.Inflate(Resource.Layout.start_layout, container, false);
            _tabs  = (TabLayout)_view.FindViewById(Resource.Id.tabs);
            _pager = (ViewPager)_view.FindViewById(Resource.Id.pager);
            Java.Lang.String [] tabNames =
            {
                new Java.Lang.String(Context.Resources.GetString(Resource.String.my_debts)),
                new Java.Lang.String(Context.Resources.GetString(Resource.String.debts_to_me)),
            };


            _pager.Adapter = new OwnerAdapter(ChildFragmentManager, tabNames);

            _tabs.SetupWithViewPager(_pager);
            _pager.PageSelected += OnPageSelected;
            _pager.LayoutChange += OnLayoutChange;

            _tabs.AddOnTabSelectedListener(this);

            _fab = _view.FindViewById <com.refractored.fab.FloatingActionButton> (Resource.Id.fab);

            _fab.Click += (sender, e) => {
                Vm.AddPage();
            };

            return(_view);
        }
Beispiel #3
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            base.OnCreateView(inflater, container, savedInstanceState);
            var view = inflater.Inflate(Resource.Layout.fragment_textessayaudioimagefragment, container, false);

            et_answer = view.FindViewById <EditText> (Resource.Id.et_answer);
            ScreensActivity activity = Activity as ScreensActivity;

            if (activity.answer.ContainsKey(screen.Id))
            {
                et_answer.Text = activity.answer [screen.Id];
            }
            ll_text = view.FindViewById <LinearLayout> (Resource.Id.ll_text);
            //dynamically make text
            Utils.makeTextViews(screen.Texts, this.Activity, ll_text, Color.White);
            ll_images = view.FindViewById <LinearLayout> (Resource.Id.ll_images);
            Utils.setAndPlayMusic(Activity, view, screen.AudioUrl, ScreensActivity.handler, mp);
            mp.Prepared += delegate(object sender, EventArgs e) {
                activity.validateBtns();
            };
            //dynamically make image+textview
            images = new List <Image> (screen.Images);
            Utils.makeTextImages(activity, ll_images, images);
            return(view);
        }
		public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
			View view = inflater.Inflate(Resource.Layout.ProfileFragment, container, false);

			VBUser user = VBUser.GetUserFromPreferences();
			TextView userType = view.FindViewById<TextView>(Resource.Id.profileUserTypeValue);
			EditText name = view.FindViewById<EditText>(Resource.Id.profileNameValue);
//			Spinner position = view.FindViewById<Spinner>(Resource.Id.profilePositionValue);
//			EditText number = view.FindViewById<EditText>(Resource.Id.profileNumberValue);
//			EditText team = view.FindViewById<EditText>(Resource.Id.profileTeamValue);
			EditText password = view.FindViewById<EditText>(Resource.Id.profilePasswordValue);

//			ArrayAdapter adapter = ArrayAdapter.CreateFromResource(this.Activity, Resource.Array.positions, Resource.Layout.SpinnerTextView);
//			adapter.SetDropDownViewResource(Resource.Layout.SpinnerCheckedLayout);
//			position.Adapter = adapter;

			if(user != null) {
				//UserType
				userType.Text = user.getUserType().ToString();

				//Name
				view.FindViewById(Resource.Id.profileNameLine).Visibility = ViewStates.Visible;
				name.Text = user.name;

//				//Position
//				if(DB_Communicator.getInstance().isAtLeast(user.listTeamRole[0].getUserType(), UserType.Coremember)) {
//					view.FindViewById(Resource.Id.profilePositionLine).Visibility = ViewStates.Visible;
//					position.SetSelection(getIdOfPosition(user.listTeamRole[0].position));
//				}
//
//				//Number
//				if(DB_Communicator.getInstance().isAtLeast(user.listTeamRole[0].getUserType(), UserType.Coremember)) {
//					view.FindViewById(Resource.Id.profileNumberLine).Visibility = ViewStates.Visible;
//					number.Text = user.listTeamRole[0].number.ToString();
//				}
					
//				view.FindViewById(Resource.Id.profilePasswordLine).Visibility = ViewStates.Visible;
//				password.Text = user.password;
				
				
				view.FindViewById<Button>(Resource.Id.profileBtnSave).Click += async delegate {
					DB_Communicator db = DB_Communicator.getInstance();
					JsonValue json = await db.UpdateUser(name.Text, "");
					
					//ändernungen im user speichern
					List<VBUser> list = db.createUserFromResponse(json, user.password);
					if(list.Count > 0) {
						VBUser updatedUser = db.createUserFromResponse(json, user.password)[0];
						updatedUser.StoreUserInPreferences(this.Activity, updatedUser);
					}
					
					Toast.MakeText(this.Activity, json["message"].ToString(), ToastLength.Long).Show();
				};
			} else {
				view.FindViewById(Resource.Id.profileErrorLine).Visibility = ViewStates.Visible;
				view.FindViewById<EditText>(Resource.Id.profileErrorValue).Text = "There was an error loading your profile information! " +
																					" Server may be down!";
			}

			return view;
		}
Beispiel #5
0
        /// <summary>
        /// Initialise la popup de la liste des zones favorites
        /// </summary>
        private void BuildAreaListFavorisPopup()
        {
            // création d'une alerte dialog
            Dialog listModeZoneFavorisDialog      = null;
            var    listModeZoneFavorisAlertDialog = new AlertDialog.Builder(this);

            // création de la liste adapter des zones favorites
            Android.Views.LayoutInflater inflater = LayoutInflater.From(this);
            Android.Views.View           view     = inflater.Inflate(Resource.Layout.ZoneFavoriteLayout, null);
            var zoneFavoriteListView = view.FindViewById <ListView>(Resource.Id.zoneFavorite_listView);
            FavoriteAreaAdapter favoriteAreaAdapter = null;

            favoriteAreaAdapter = new FavoriteAreaAdapter(this
                                                          , () => { listModeZoneFavorisDialog.Dismiss(); }
                                                          , () => { favoriteAreaAdapter.NotifyDataSetChanged(); });
            zoneFavoriteListView.Adapter = favoriteAreaAdapter;

            if (zoneFavoriteListView.Parent != null)
            {
                ((ViewGroup)zoneFavoriteListView.Parent).RemoveView(zoneFavoriteListView); // <- fix
            }
            zoneFavoriteListView.ChoiceMode    = ChoiceMode.Single;
            zoneFavoriteListView.ItemsCanFocus = true;
            listModeZoneFavorisAlertDialog.SetView(zoneFavoriteListView);

            // instatiation de notre popup dans un objet dialog
            listModeZoneFavorisDialog = listModeZoneFavorisAlertDialog.Create();
            listModeZoneFavorisDialog.Show();
        }
Beispiel #6
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Android 3.x+ still wants to show title: disable
            Dialog.Window.RequestFeature(WindowFeatures.NoTitle);

            // Create our view
            view = inflater.Inflate(Resource.Layout.AddRemoveFromChannelGroup, container, true);

            if (cds == CommonDialogStates.AddToChannelGroup || cds == CommonDialogStates.RemoveFromChannelGroup)
            {
                // Handle dismiss button click
                Button btnSet = view.FindViewById <Button> (Resource.Id.btnSet);
                btnSet.Click += ButtonSetClick;

                btnDismiss        = view.FindViewById <Button> (Resource.Id.btnCancel);
                btnDismiss.Click += ButtonDismissClick;
            }
            else if (cds == CommonDialogStates.GetChannelGroup)
            {
                TextView tvChannel = view.FindViewById <TextView> (Resource.Id.lblChannel);
                tvChannel.Visibility = ViewStates.Gone;
                EditText txtChannel = view.FindViewById <EditText> (Resource.Id.txtChannel);
                txtChannel.Visibility = ViewStates.Gone;

                Button btnSet = view.FindViewById <Button> (Resource.Id.btnSet);
                btnSet.Click += ButtonSetClick;

                btnDismiss        = view.FindViewById <Button> (Resource.Id.btnCancel);
                btnDismiss.Click += ButtonDismissClick;
            }
            return(view);
        }
Beispiel #7
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.DialogViewContacts, container, false);             //Inflate the view using the DialogSignIn XML file, do not attach to root

            _viewContactsListview = view.FindViewById <ListView>(Resource.Id.viewContactsListView);
            return(view);
        }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			if (container == null) {
				// Currently in a layout without a container, so no reason to create our view.
				return null;
			}

			var view = inflater.Inflate(Resource.Layout.speaker_screen, container, false);

			var speaker = EvolveData.SpeakerData [ShownSpeakerIndex];

			headshotImageView = view.FindViewById<ImageView> (Resource.Id.headshotImageView);
			var headshot = GetHeadShot (speaker.HeadshotUrl);
			headshotImageView.SetImageDrawable (headshot);

			speakerNameTextView = view.FindViewById<TextView> (Resource.Id.speakerNameTextView);
			speakerNameTextView.Text = speaker.Name;

			companyNameTextView = view.FindViewById<TextView> (Resource.Id.companyNameTextView);
			companyNameTextView.Text = speaker.Company;

			twitterHandleView = view.FindViewById<TextView> (Resource.Id.twitterTextView);
			twitterHandleView.Text = "@" + speaker.TwitterHandle;

			return view;
		}
		public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			// Use this to return your custom view for this Fragment
			var view = inflater.Inflate(Resource.Layout.HeaderFragmentLayout, container, false);
			var homeBtn = view.FindViewById<ImageView>(Resource.Id.HeaderLogo);
			var overlayBtn = view.FindViewById<ImageView>(Resource.Id.HeaderOverlay);
			var animIn = AnimationUtils.LoadAnimation(Activity.BaseContext, Resource.Animation.Overlay_animIn);

			homeBtn.Click += delegate
			{
				if (!(Activity is MainActivity))
				{
					var i = new Intent(Activity, typeof(MainActivity));
					i.AddFlags(ActivityFlags.NewTask | ActivityFlags.ClearTop);
					Activity.StartActivity(i);
				}
			};

			overlayBtn.Click += delegate
			{
				overlay.View.StartAnimation(animIn);
				overlay.Initialize();
				overlay.View.Visibility = ViewStates.Visible;
			};

			return view;
		}
Beispiel #10
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            View view = inflater.Inflate(Resource.Layout.Fragment3, container, false);

            Button button = view.FindViewById <Button>(Resource.Id.btnFragment4);

            mFragment4Container = view.FindViewById <FrameLayout>(Resource.Id.fragment4Container);

            var trans = Activity.SupportFragmentManager.BeginTransaction();

            trans.Add(mFragment4Container.Id, new Fragment4(), "Fragment4");
            trans.Commit();

            button.Click += (object sender, EventArgs e) =>
            {
                if (mFragment4Container.TranslationY + 2 >= mFragment4Container.Height)
                {
                    var interpolator = new Android.Views.Animations.OvershootInterpolator(5);
                    mFragment4Container.Animate().SetInterpolator(interpolator)
                    .TranslationYBy(-200)
                    .SetDuration(500);
                }
            };


            mFragment4Container.SetOnTouchListener(this);
            return(view);
        }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			// Use this to return your custom view for this Fragment
			// return inflater.Inflate(Resource.Layout.YourFragment, container, false);

			//	  Lich hoc theo HK
			var rootView = inflater.Inflate (Resource.Layout.LichHoc_HK, container, false);
			isfirst = true;
			listView_HK = rootView.FindViewById<ListView> (Resource.Id.listLH);
			lbl_HK = rootView.FindViewById<TextView> (Resource.Id.lbl_HK_LH);
			lbl_NH = rootView.FindViewById<TextView> (Resource.Id.lbl_NH_LH);
			progress = rootView.FindViewById<ProgressBar> (Resource.Id.progressLH);
			linear = rootView.FindViewById<LinearLayout>(Resource.Id.linear_HK_LH);
			linearLH = rootView.FindViewById<LinearLayout>(Resource.Id.linearLH);
			txtNotify = rootView.FindViewById<TextView>(Resource.Id.txtNotify_LT_HK);
		//	radioGroup = rootView.FindViewById<RadioGroup>(Resource.Id.radioGroup1);
		    bundle=this.Arguments;
			check = bundle.GetBoolean ("Remind");
			autoupdate = bundle.GetBoolean ("AutoUpdateData");

			//load data

			LoadData_HK ();
		
			// row click
			listView_HK.ItemLongClick += listView_ItemClick;
						

			return rootView;
		}
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            View rootView = inflater.Inflate(Resource.Layout.fragment_autocomplete_getting_started, container, false);

            // >> autocomplete-load-xamarin
            this.autocomplete = (RadAutoCompleteTextView)rootView.FindViewById(Resource.Id.autocmp);
            // << autocomplete-load-xamarin

            // >> autocomplete-suggest-display-xamarin
            this.autocomplete.SuggestMode = SuggestMode.Suggest;
            this.autocomplete.DisplayMode = DisplayMode.Plain;
            // << autocomplete-suggest-display-xamarin

            // >> autocomplete-adapter-xamarin
            this.adapter = new AutoCompleteAdapter(this.Context, this.GetTokenObjects(), Java.Lang.Integer.ValueOf(Resource.Layout.suggestion_item_layout));
            this.adapter.CompletionMode = CompletionMode.StartsWith;
            this.autocomplete.Adapter   = this.adapter;
            // << autocomplete-adapter-xamarin

            Display display = this.Activity.WindowManager.DefaultDisplay;
            int     height  = display.Height;

            this.autocomplete.SuggestionViewHeight = height / 4;

            this.SetButtonActions(rootView);

            return(rootView);
        }
Beispiel #13
0
        public override View GetView(int position, View convertView, ViewGroup parent)//הפעולה שיוצרת את התאים של הרשימה
        {
            Android.Views.LayoutInflater layoutInflater = ((ShopingCartActivity)context).LayoutInflater;

            Android.Views.View view = layoutInflater.Inflate(Resource.Layout.Custom4, parent, false);//מנפח את התא

            TextView tvTitle = view.FindViewById <TextView>(Resource.Id.tvName);


            TextView tvPrice = view.FindViewById <TextView>(Resource.Id.tvPrice);

            ImageView ivProduct = view.FindViewById <ImageView>(Resource.Id.ivProduct);

            ivProduct.Click += delegate
            {
                Toast.MakeText(Application.Context, "num of click" + position, ToastLength.Short).Show();
            };

            ToySql temp = objects[position];//שולף את האיבר במקום הפוסישין

            if (temp != null)

            {
                //אם התנאי מתקיים אז הוא מקבל ומציג את התכונות

                Bitmap bitmap = Helper.Base64ToBitmap(temp.pic);
                ivProduct.SetImageBitmap(bitmap);

                tvPrice.Text = "" + temp.Price;

                tvTitle.Text = temp.name;
            }

            return(view);//מחזיר התא למקום
        }
        public override View GetView(int position, View convertView, ViewGroup parent)
        {
            // LayoutInflater layoutInflater = LayoutInflater.From(context);
            Android.Views.LayoutInflater layoutInflater = ((SportToyActivity)context).LayoutInflater;

            Android.Views.View view = layoutInflater.Inflate(Resource.Layout.Custom1, parent, false);

            TextView tvTitle = view.FindViewById <TextView>(Resource.Id.tvName);

            TextView tvSubTitle = view.FindViewById <TextView>(Resource.Id.tvType);

            TextView tvAge = view.FindViewById <TextView>(Resource.Id.tvAge);

            TextView tvPrice = view.FindViewById <TextView>(Resource.Id.tvPrice);

            ImageView ivProduct = view.FindViewById <ImageView>(Resource.Id.ivProduct);

            SportToy temp = objects[position];

            if (temp != null)

            {
                ivProduct.SetImageBitmap(temp.GetPic());

                tvPrice.Text = "" + temp.GetPrice();

                tvTitle.Text = temp.GetName();

                tvSubTitle.Text = temp.GetSportType();

                tvAge.Text = "" + temp.GetAge();
            }

            return(view);
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            View rootView = inflater.Inflate(Resource.Layout.fragment_autocomplete_customization, container, false);

            this.autocomplete = (RadAutoCompleteTextView)rootView.FindViewById(Resource.Id.autocomplete);

            List <FeedObject> objects = this.loadDataFromJson();

            // >> autocomplete-suggest-mode-xamarin
            this.autocomplete.SuggestMode = SuggestMode.Suggest;
            // << autocomplete-suggest-mode-xamarin

            this.autocomplete.DisplayMode = DisplayMode.Tokens;

            this.adapter = new AutoCompleteAdapter(this.Context, this.GetTokenObjects(objects), Java.Lang.Integer.ValueOf(Resource.Layout.suggestion_item_layout));
            this.adapter.CompletionMode = CompletionMode.StartsWith;
            this.autocomplete.Adapter   = this.adapter;

            Display display = this.Activity.WindowManager.DefaultDisplay;
            int     height  = display.Height;

            this.autocomplete.SuggestionViewHeight = height / 3;

            Drawable img = Resources.GetDrawable(Resource.Drawable.search);

            this.autocomplete.SetAutocompleteIcon(img);

            return(rootView);
        }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			RadCalendarView calendarView = new RadCalendarView (Activity);
			calendarView.ScrollMode = ScrollMode.Stack;

			return calendarView;
		}
	        public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle p2)
			{
				var v = inflater.Inflate(Resource.Layout.hello_world, container, false);
	            var tv = v.FindViewById<TextView>(Resource.Id.text);
	            tv.Text = "This is an instance of MyDialogFragment";
	            return v;
			}
Beispiel #18
0
    public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
    {
        Log.Debug(TAG, "SSC onCreateView");

        View rootView = inflater.Inflate(Resource.Layout.fragment_main, container,
                                         false);

        // textViewStatus = FindViewById<TextView>(Resource.Id.textViewStatus) as TextView;
        textViewStatus      = (TextView)rootView.FindViewById(Resource.Id.textView1);
        textViewStatus.Text = "Status: " + " Starting..";


        spinner2 = (Spinner)rootView.FindViewById(Resource.Id.spinner2);
        spinner2.ItemSelected += spinner2_ItemSelected;

        readBtn        = (Button)rootView.FindViewById(Resource.Id.button4);
        readBtn.Click += readBtn_Click;

        stopReadBtn        = (Button)rootView.FindViewById(Resource.Id.button5);
        stopReadBtn.Click += stopReadBtn_Click;

        if (results.StatusCode != EMDKResults.STATUS_CODE.Success)
        {
            Log.Error(TAG, "EMDKManager object request failed!");
            textViewStatus.Text = "Status: "
                                  + "EMDKManager object request failed!";
        }

        return(rootView);
    }
        public static MonthView Create(ViewGroup parent, LayoutInflater inflater, string weekdayNameFormat,
            DateTime today, ClickHandler handler, int dividerColor, int dayBackgroundResId,
            int dayTextColorResId, int titleTextColor, int headerTextColor)
        {
            var view = (MonthView) inflater.Inflate(Resource.Layout.month, parent, false);
            view.setDividerColor(dividerColor);
            view.setDayTextColor(dayTextColorResId);
            view.setTitleTextColor(titleTextColor);
            view.setHeaderTextColor(headerTextColor);

            if (dayBackgroundResId != 0) {
                view.setDayBackground(dayBackgroundResId);
            }

            var originalDay = today;

            var firstDayOfWeek = (int) CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;

            var headerRow = (CalendarRowView) view._grid.GetChildAt(0);

            for (int i = 0; i < 7; i++) {
                var offset = firstDayOfWeek - (int) today.DayOfWeek + i;
                today = today.AddDays(offset);
                var textView = (TextView) headerRow.GetChildAt(i);
                textView.Text = today.ToString(weekdayNameFormat);
                today = originalDay;
            }
            view._clickHandler = handler;
            return view;
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            intent = new Intent(Activity, typeof(MenuFragment));

            tabHost = new FragmentTabHost(Activity);
            tabHost.Setup(Activity, ChildFragmentManager, Resource.Layout.FragmentTabHost);

            View tabIndicator1 = LayoutInflater.From(Activity).Inflate(Resource.Layout.TabIndicator, tabHost.TabWidget, false);
            ((TextView)tabIndicator1.FindViewById(Resource.Id.TabTitle)).Text = "Bible";
            ((ImageView)tabIndicator1.FindViewById(Resource.Id.TabIcon)).SetImageResource(Resource.Drawable.bible);

            View tabIndicator2 = LayoutInflater.From(Activity).Inflate(Resource.Layout.TabIndicator, tabHost.TabWidget, false);
            ((TextView)tabIndicator2.FindViewById(Resource.Id.TabTitle)).Text = "Pubs";
            ((ImageView)tabIndicator2.FindViewById(Resource.Id.TabIcon)).SetImageResource(Resource.Drawable.pubs);

            View tabIndicator3 = LayoutInflater.From(Activity).Inflate(Resource.Layout.TabIndicator, tabHost.TabWidget, false);
            ((TextView)tabIndicator3.FindViewById(Resource.Id.TabTitle)).Text = "Search";
            ((ImageView)tabIndicator3.FindViewById(Resource.Id.TabIcon)).SetImageResource(Resource.Drawable.search);

            tabHost.AddTab(tabHost.NewTabSpec("bible").SetIndicator(tabIndicator1), (new CanonHeaderGridFragment()).Class, null);
            tabHost.AddTab(tabHost.NewTabSpec("publications").SetIndicator(tabIndicator2), (new PublicationsFragment()).Class, null);
            tabHost.AddTab(tabHost.NewTabSpec("search").SetIndicator(tabIndicator3), (new SearchFragment()).Class, null);

            //tabHost.AddTab(tabHost.NewTabSpec("bible").SetIndicator("Bible", Resources.GetDrawable(Resource.Drawable.bible)), (new CanonHeaderGridFragment()).Class, null);
            //tabHost.AddTab(tabHost.NewTabSpec("publications").SetIndicator("Pubs", Resources.GetDrawable(Resource.Drawable.pubs)), (new PublicationsFragment()).Class, null);
            //tabHost.AddTab(tabHost.NewTabSpec("search").SetIndicator("Search", Resources.GetDrawable(Resource.Drawable.search)), (new SearchFragment()).Class, null);

             	        return tabHost;
        }
Beispiel #21
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.DialogSignUp, container, false);

            _userNameText        = view.FindViewById <EditText>(Resource.Id.editTextNewUser);
            _confirmPasswordText = view.FindViewById <EditText>(Resource.Id.editTextNewEmail);
            _passwordText        = view.FindViewById <EditText>(Resource.Id.editNewTextPassword);
            _registerButton      = view.FindViewById <Button>(Resource.Id.buttonRegister);

            var textViewUserName = view.FindViewById <TextView>(Resource.Id.textViewNewUsername);
            var textViewEmail    = view.FindViewById <TextView>(Resource.Id.textViewNewEmail);
            var textViewPassword = view.FindViewById <TextView>(Resource.Id.textViewNewPassword);

            Typeface sand = Typeface.CreateFromAsset(Application.Context.Assets, "Quicksand-Regular.otf");

            _registerButton.SetTypeface(sand, TypefaceStyle.Bold);
            _confirmPasswordText.SetTypeface(sand, TypefaceStyle.Bold);
            _userNameText.SetTypeface(sand, TypefaceStyle.Bold);
            _passwordText.SetTypeface(sand, TypefaceStyle.Bold);
            textViewUserName.SetTypeface(sand, TypefaceStyle.Bold);
            textViewEmail.SetTypeface(sand, TypefaceStyle.Bold);
            textViewPassword.SetTypeface(sand, TypefaceStyle.Bold);



            _registerButton.Click += _registerButton_Click;

            return(view);
        }
Beispiel #22
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            InitTitle();
            InitView(inflater, container);
            amountView = _view.FindViewById <EditText>(Resource.Id.amount);
            var hintResource = Vm.Positive ? Resource.String.amount : Resource.String.amount_refund;

            amountView.Hint         = Utils.GetStringFromResource(hintResource);
            amountView.TextChanged += (sender, e) =>
            {
                Vm.Amount = string.IsNullOrEmpty(amountView.Text) ? 0 : Convert.ToDouble(amountView.Text);
            };

            amountView.SetTextColor(Vm.Positive ? Utils.Green : Utils.DarkGray);

            var commentView = _view.FindViewById <EditText>(Resource.Id.comment);

            commentView.TextChanged += (sender, e) => Vm.Comment = commentView.Text;

            _form = _view.FindViewById <LinearLayout>(Resource.Id.form);

            dateView = _view.FindViewById <EditText>(Resource.Id.date);

            var nowTime = DateTime.Now;

            dateView.Text   = nowTime.ToString(Utils.DatePattern);
            Vm.DateTime     = nowTime;
            dateView.Click += OnDateClick;

            doneButton            = MainActivity.Current.FindViewById <ImageButton>(Resource.Id.done_button);
            doneButton.Visibility = Android.Views.ViewStates.Visible;
            doneButton.Click     += CheckValid;
            return(_view);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var ignore = base.OnCreateView(inflater, container, savedInstanceState);

            var view = this.BindingInflate(FragmentId, null);

            _toolbar = view.FindViewById<Toolbar>(Resource.Id.toolbar);
            if (_toolbar != null)
            {
                ((MainActivity)Activity).SetSupportActionBar(_toolbar);
                ((MainActivity)Activity).SupportActionBar.SetDisplayHomeAsUpEnabled(true);

                _drawerToggle = new MvxActionBarDrawerToggle(
                    Activity,                               // host Activity
                    ((MainActivity)Activity).DrawerLayout,  // DrawerLayout object
                    _toolbar,                               // nav drawer icon to replace 'Up' caret
                    Resource.String.drawer_open,            // "open drawer" description
                    Resource.String.drawer_close            // "close drawer" description
                );
                _drawerToggle.DrawerOpened += (object sender, ActionBarDrawerEventArgs e) => ((MainActivity)Activity).HideSoftKeyboard ();
                ((MainActivity)Activity).DrawerLayout.SetDrawerListener(_drawerToggle);
            }

            return view;
        }
Beispiel #24
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            base.OnCreateView(inflater, container, savedInstanceState);
            var view = inflater.Inflate(Resource.Layout.CallVoice, container, false);

            return view;
        }
 public PostAdapter(Context context, ObservableCollection<Post> posts) 
 {
     this.posts = posts;
     this.context = context;
     inflater = LayoutInflater.From(context);
     posts.CollectionChanged += (o,e) => this.NotifyDataSetChanged();
 }
		public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			SetStyle(DialogFragmentStyle.NoTitle, Android.Resource.Style.ThemeTranslucentNoTitleBar);
			Dialog.RequestWindowFeature((int)WindowFeatures.NoTitle);
			var view = inflater.Inflate(Resource.Layout.TrickSelectorPreMenuDialogFragmentLayout, container, false);

			Dialog.Window.SetBackgroundDrawableResource(Resource.Drawable.shape_roundedRect);

			var buttons = new Tuple<ImageView, TrickType>[typeof(TrickType).GetEnumNames().Length + 1];
			var trickFilterButtons = Resources.ObtainTypedArray(Resource.Array.TrickSortButtons_TrickSelector);
			var trickFilterButtonTexts = Resources.ObtainTypedArray(Resource.Array.TrickSortButtonTexts_TrickSelector);
			For(0, buttons.Length, (i) =>
			{
				buttons[i] = Tuple.Create(view.FindViewById<ImageView>(trickFilterButtons.GetResourceId(i, 0)), (TrickType)i);
				view.FindViewById<TextView>(trickFilterButtonTexts.GetResourceId(i, 0)).Typeface = Data.Bowlby_OneSC;
			});

			ForEach(buttons, (button) => button.Item1.Click += delegate
			{
				if (IsListEmpty(button.Item2))
				{
					Toast.MakeText(Activity.BaseContext, Resource.String.NoTricks, ToastLength.Long).Show();
				}
				else
				{
					args.PutInt(Flags.TricksToUse, (int)button.Item2);
					TrickSelectorDialogFragment.newInstance(args).Show(FragmentManager, "tag");
					Dismiss();
				}
			});

			return view;
		}
		public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
			view = inflater.Inflate(Resource.Layout.TeamsFragment, container, false);
			if(listTeams.Count == 0) {
				//display text that there are currently no events and hide list with events
				view.FindViewById(Resource.Id.teamsFragmentListTeams).Visibility = ViewStates.Gone;
			} else {
				//display list with events and hide the text
				view.FindViewById(Resource.Id.teamsFragmentNoTeams).Visibility = ViewStates.Gone;

				listView = view.FindViewById<ListView>(Resource.Id.teamsFragmentListTeams);
				listView.Adapter = new ListTeamsAdapter(this, listTeams);
				listView.ItemClick += OnListItemClick;
			}

			if(DB_Communicator.getInstance().isAtLeast(VBUser.GetUserFromPreferences().getUserType(), UserType.Coremember)) {
				view.FindViewById<LinearLayout>(Resource.Id.teamsFragmentBtnAddLine).Visibility = ViewStates.Visible;
			} else {
				view.FindViewById<LinearLayout>(Resource.Id.teamsFragmentBtnAddLine).Visibility = ViewStates.Gone;
			}

			view.FindViewById<Button>(Resource.Id.teamsFragmentBtnAdd).Click += (object sender, EventArgs e) => {
				ViewController.getInstance().mainActivity.switchFragment(ViewController.TEAMS_FRAGMENT, 
					ViewController.ADD_TEAM_FRAGMENT, new AddTeamFragment());
			};

			return view;
		}
    public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
    {
      var root = inflater.Inflate(Resource.Layout.fragment_contacts, container, false);

      refresher = root.FindViewById<SwipeRefreshLayout>(Resource.Id.refresher);
      refresher.SetColorScheme(Resource.Color.blue);

      refresher.Refresh += async delegate
      {
        if (viewModel.IsBusy)
          return;

        await viewModel.GetContactsAsync();
        Activity.RunOnUiThread(() => { ((BaseAdapter)listView.Adapter).NotifyDataSetChanged(); });

      };

      viewModel.PropertyChanged += PropertyChanged;

      listView = root.FindViewById<ListView>(Resource.Id.list);

      listView.Adapter = new ContactAdapter(Activity, viewModel);

      listView.ItemLongClick += ListViewItemLongClick;
      listView.ItemClick += ListViewItemClick;
      var fab = root.FindViewById<FloatingActionButton>(Resource.Id.fab);
      fab.AttachToListView(listView);
      fab.Click += (sender, args) =>
      {
        ContactDetailsActivity.ViewModel = null;
        var intent = new Intent(Activity, typeof(ContactDetailsActivity));
        StartActivity(intent);
      };
      return root;
    }
        /// <inheritdoc/>
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            ZTnTrace.Trace(MethodBase.GetCurrentMethod());

            var view = inflater.Inflate(Resource.Layout.Home, container, false);

            var careerListView = view.FindViewById<ListView>(Resource.Id.AccountsListView);
            careerListView.ItemClick += (sender, args) =>
            {
                var viewCareerIntent = new Intent(Activity, typeof(ViewCareerActivity));
                D3Context.Instance.BattleTag = args.View.FindViewById<TextView>(Android.Resource.Id.Text1)
                    .Text;
                D3Context.Instance.Host = args.View.FindViewById<TextView>(Android.Resource.Id.Text2)
                    .Text;
                StartActivity(viewCareerIntent);
            };

            D3Context.Instance.DbAccounts = new AccountsDB(Activity);
            cursor = D3Context.Instance.DbAccounts.GetAccounts();
            Activity.StartManagingCursor(cursor);

            IListAdapter accountsAdapter = new SimpleCursorAdapter(Activity, Android.Resource.Layout.SimpleListItem2, cursor, accountsFromColumns, accountsToId);
            view.FindViewById<ListView>(Resource.Id.AccountsListView)
                .Adapter = accountsAdapter;

            return view;
        }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			// Use this to return your custom view for this Fragment
			// return inflater.Inflate(Resource.Layout.YourFragment, container, false);
		
//  Lich hoc theo HK
//		    var rootView = inflater.Inflate(Resource.Layout.LichHoc_HK, container, false);
//			ListView listView = rootView.FindViewById<ListView>(Resource.Id.listLH);
//
//			var t= BLichHoc.MakeDataFromXml(SQLite_Android.GetConnection ());
//			List<LichHoc> listLH = BLichHoc.GetAll (SQLite_Android.GetConnection ());
//			List<chiTietLH> listCT = new List<chiTietLH> ();
//			foreach (var item in listLH) {
//				listCT.AddRange(BLichHoc.GetCTLH (SQLite_Android.GetConnection (), item.Id));
//
//			}
//	
//
//			LichHocHKAdapter adapter = new LichHocHKAdapter (Activity, listCT);
//			listView.Adapter  = adapter;


			//Theo Tuan
			var rootView = inflater.Inflate(Resource.Layout.LichHoc_Tuan, container, false);
			listView = rootView.FindViewById<ExpandableListView>(Resource.Id.listLH_Tuan);
			progress=rootView.FindViewById<ProgressBar>(Resource.Id.progressLHTuan);


			LoadData ();

		
			return rootView;
		}
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Use this to return your custom view for this Fragment
            return inflater.Inflate(Resource.Layout.TestFragment, container, false);

            return base.OnCreateView(inflater, container, savedInstanceState);
        }
Beispiel #32
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            this.HasOptionsMenu = true;
            var ignored = base.OnCreateView(inflater, container, savedInstanceState);

            return(this.BindingInflate(Resource.Layout.fragment_browse, null));
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Bundle savedInstanceState)
        {
            var root = inflater.Inflate(GetLayout(), container, false);

            this.root     = root;
            this.inflater = inflater;

            InitElements(root, inflater);
            if (position < 1 && listAdapter.IsEmpty)
            {
                InitList(root, inflater);
            }

            ViewCompat.SetElevation(root, 50);

            listView.ItemClick += (sender, e) =>
            {
                var intent = new Intent(container.Context, typeof(ViewSessionActivity));
                if (isWorkshop)
                {
                    intent = new Intent(container.Context, typeof(ViewWorkshopActivity));
                }

                intent.PutExtra("Id", (int)e.Id);
                intent.PutExtra("IsBooking", true);
                StartActivity(intent);
            };
            return(root);
        }
        // Workaround from Support.v4 v22.1.1 library:
        //
        // For APIs >= 11 && < 21, there was a framework bug that prevented a LayoutInflater's
        // Factory2 from being merged properly if set after a cloneInContext from a LayoutInflater
        // that already had a Factory2 registered. We work around that bug here. If we can't we
        // log an error.
        private static void ForceSetFactory2(LayoutInflater inflater, LayoutInflater.IFactory2 factory)
        {
            if (!_checkedField)
            {
                try
                {
                    Class layoutInflaterClass = Class.FromType(typeof(LayoutInflater));
                    _layoutInflaterFactory2Field = layoutInflaterClass.GetDeclaredField("mFactory2");
                    _layoutInflaterFactory2Field.Accessible = true;
                }
                catch (NoSuchFieldException e)
                {
                    Mvx.Error(
                        "ForceSetFactory2 Could not find field 'mFactory2' on class {0}; inflation may have unexpected results.",
                        Class.FromType(typeof(LayoutInflater)).Name);
                }
                _checkedField = true;
            }

            if (_layoutInflaterFactory2Field != null)
            {
                try
                {
                    _layoutInflaterFactory2Field.Set(inflater, (Java.Lang.Object)factory);
                }
                catch (IllegalAccessException e)
                {
                    Mvx.Error("ForceSetFactory2 could not set the Factory2 on LayoutInflater {0} ; inflation may have unexpected results.", inflater);
                }
            }
        }
Beispiel #35
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            //			Console.WriteLine("[{0}] OnCreateView Called: {1}", TAG, DateTime.Now.ToLongTimeString());
            View v = inflater.Inflate(Resource.Layout.fragment_photo, container, false);

            mImageView = v.FindViewById <ImageView>(Resource.Id.photoView);

            photoUrl = Activity.Intent.GetStringExtra(PhotoGalleryFragment.PHOTO_URL_EXTRA);

            photoUrl      = photoUrl.Substring(0, photoUrl.Length - 6) + ".jpg";
            photoFilename = new FlickrFetchr().GetFilenameFromUrl(photoUrl);

            ProgressDialog pg = new ProgressDialog(Activity);

            pg.SetMessage(Resources.GetString(Resource.String.loading_photo_message));
            pg.SetTitle(Resources.GetString(Resource.String.loading_photo_title));
            pg.SetCancelable(false);
            pg.Show();

            Task.Run(async() => {
                Bitmap image = await new FlickrFetchr().GetImageBitmapAsync(photoUrl, 0, new CancellationTokenSource().Token, photoFilename).ConfigureAwait(false);
                Activity.RunOnUiThread(() => {
                    mImageView.SetImageBitmap(image);
                    //Console.WriteLine("[{0}] File created: {1}", TAG, photoUrl);
                    pg.Dismiss();
                });
            });

            return(v);
        }
		public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			var view = inflater.Inflate(Resource.Layout.ListViewWithSwipe, container, false);


			SwipeRefreshLayout = (SwipeRefreshLayout)view.FindViewById(Resource.Id.swipe_refresh_layout);
			SwipeRefreshLayout.SetColorSchemeColors(Resource.Color.tenBlue,
				Resource.Color.colorPrimary,
				Resource.Color.colorAccent,
				Resource.Color.colorPrimaryDark);
			SwipeRefreshLayout.Refresh += async delegate
			{
				await FetchTableData();
			};


			ListView = view.FindViewById<ListView>(Resource.Id.list);
			ListView.SetOnScrollListener(new TailFetchListViewListener(this));
			ListView.AddFooterView(FooterView, null, false);
			ListView.ItemClick += (object sender, AdapterView.ItemClickEventArgs e) =>
			{
				TenServiceHelper.GoToGuestProfile(FragmentManager, Master.Id, TableItems[e.Position]);
			};


			BackgroundTextView = (TextView)view.FindViewById<TextView>(Resource.Id.backgroundTextView);
			BackgroundTextView.Text = EmptyTableString;
			return view;
		}
 public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 {
     var view = inflater.Inflate(Resource.Layout.BusinessCardFragmentLayout, container, false);
     var listView = view.FindViewById<ListView>(Resource.Id.listViewBusinessCards);
     listView.Adapter = new BusinessCardAdapter (this.Activity);
     return view;
 }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			Dialog.SetTitle (GetString (Resource.String.sign_in));
			var v = inflater.Inflate (Resource.Layout.fingerprint_dialog_container, container, false);
			mCancelButton = (Button)v.FindViewById (Resource.Id.cancel_button);
			mCancelButton.Click += (object sender, EventArgs e) => Dismiss ();

			mSecondDialogButton = (Button)v.FindViewById (Resource.Id.second_dialog_button);
			mSecondDialogButton.Click += (object sender, EventArgs e) => {
				if (mStage == Stage.Fingerprint) {
					GoToBackup ();
				} else {
					VerifyPassword ();
				}
			};

			mFingerprintContent = v.FindViewById (Resource.Id.fingerprint_container);
			mBackupContent = v.FindViewById (Resource.Id.backup_container);
			mPassword = v.FindViewById<EditText> (Resource.Id.password);
			mPassword.SetOnEditorActionListener (this);
			mPasswordDescriptionTextView = v.FindViewById<TextView> (Resource.Id.password_description);
			mUseFingerprintFutureCheckBox = v.FindViewById<CheckBox> (Resource.Id.use_fingerprint_in_future_check);
			mNewFingerprintEnrolledTextView = v.FindViewById<TextView> (Resource.Id.new_fingerprint_enrolled_description);
			mFingerprintUiHelper = mFingerprintUiHelperBuilder.Build (
				(ImageView)v.FindViewById (Resource.Id.fingerprint_icon),
				(TextView)v.FindViewById (Resource.Id.fingerprint_status), this);
			UpdateStage ();

			// If fingerprint authentication is not available, switch immediately to the backup
			// (password) screen.
			if (!mFingerprintUiHelper.IsFingerprintAuthAvailable)
				GoToBackup ();

			return v;
		}
Beispiel #39
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            View rootView = inflater.Inflate(Resource.Layout.fragment_autocomplete_remote_data, container, false);

            this.autocomplete = (RadAutoCompleteTextView)rootView.FindViewById(Resource.Id.autocomplete);

            this.exampleMain    = rootView.FindViewById(Resource.Id.exampleMainContainer);
            this.connectionInfo = rootView.FindViewById(Resource.Id.connectionInfoContainer);
            this.refresh        = (Button)rootView.FindViewById(Resource.Id.retryButton);
            this.refresh.SetOnClickListener(this);

            bool isConnectionAvailable = IsConnectionAvailable(Activity);

            this.UpdateConnectivity(isConnectionAvailable);

            this.autocomplete.SuggestMode      = SuggestMode.Suggest;
            this.autocomplete.DisplayMode      = DisplayMode.Plain;
            this.autocomplete.AutocompleteHint = "Choose airport";
            // >> set-async-data-xamarin
            this.autocomplete.UsingAsyncData = true;
            this.adapter = new AutoCompleteAdapter(
                this.Context, new List <TokenModel>(), Integer.ValueOf(Resource.Layout.suggestion_item_layout));
            // << set-async-data-xamarin
            this.adapter.CompletionMode = new StartsWithRemote(this.autocomplete);
            this.autocomplete.Adapter   = this.adapter;

            Display display = this.Activity.WindowManager.DefaultDisplay;
            int     height  = display.Height;

            this.autocomplete.SuggestionViewHeight = height / 4;

            return(rootView);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var ignore = base.OnCreateView(inflater, container, savedInstanceState);

            var view = this.BindingInflate(FragmentId, null);

            if (Title != string.Empty)
            {
                Activity.Title = Title;
            }

            //TODO: I guess this can be removed?
            toolbar = view.FindViewById<Toolbar>(Resource.Id.toolbar);
            if (toolbar != null)
            {
                ((MainActivity) Activity).SetSupportActionBar(toolbar);
                ((MainActivity) Activity).SupportActionBar.SetDisplayHomeAsUpEnabled(true);

                drawerToggle = new MvxActionBarDrawerToggle(
                    Activity, // host Activity
                    ((MainActivity) Activity).DrawerLayout, // DrawerLayout object
                    toolbar, // nav drawer icon to replace 'Up' caret
                    Resource.String.drawer_open, // "open drawer" description
                    Resource.String.drawer_close // "close drawer" description
                    );

                ((MainActivity) Activity).DrawerLayout.AddDrawerListener(drawerToggle);
            }

            return view;
        }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			View v = inflater.Inflate (Resource.Layout.WebViewDialog, container, false);

			txtTitle = v.FindViewById<TextView> (Resource.Id.txt_dialog_title);
			divider = v.FindViewById<View> (Resource.Id.title_divider);
			webView = v.FindViewById<WebView> (Resource.Id.dialog_web_view);

			if (title == null || title.Length < 1) {
				txtTitle.Visibility = divider.Visibility = ViewStates.Gone;
			} else {
				txtTitle.Text = title;
			}

			if (url != null && url.Length > 0) {
				webView.LoadUrl (url);
			}

			if (showOkay) {
				btnOk.Visibility = ViewStates.Visible;
				btnOk.Click += (object sender, EventArgs e) => {
					this.Dismiss ();
				};
			}

			return v;
		}
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            RelativeLayout view = (RelativeLayout)inflater.Inflate (Resource.Layout.raffledetail_gettemppass, container, false);
            rootview = view;

            TextView hinttextview=(TextView)view.FindViewById (Resource.Id.gettemppass_hinttext_textview);
            hinttextview.Text = RequestTPScreenData.ProvideClientInfoTextViewText;

            emailorphone = (EditText)view.FindViewById (Resource.Id.gettemppass_emailorphone_edittext);
            emailorphone.Hint = RequestTPScreenData.ClientInfoTextFieldPlaceholder;

            requesttemppass = (Button)view.FindViewById (Resource.Id.gettemppass_requesttemppass_button);
            requesttemppass.Text = RequestTPScreenData.RequestTPBtnTitle;
            //send web request
            requesttemppass.Click+=OnRequestTempPassClick;

            TextView signuptextview=view.FindViewById<TextView> (Resource.Id.gettemppass_register_textview);
            nn_activity.SetClickAbleText (signuptextview,RequestTPScreenData.DontHaveAccountLabelText+RequestTPScreenData.SignUpBtnTitle,RequestTPScreenData.SignUpBtnTitle,()=>{

                if(FormatManager.chechinput(emailorphone.Text,FormatManager.FormatOption.Email)){
                    (nn_activity as HomeScreen).ShowBuyerSignUp(emailorphone.Text);
                }
                else{
                    (nn_activity as HomeScreen).ShowBuyerSignUp("");
                }

            });

            return view;
        }
		public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{
			RadCalendarView calendarView = new RadCalendarView (Activity);
			calendarView.CustomizationRule = new DisabledDatesRule (calendarView.Calendar);

			return calendarView;
		}
        public MvxLayoutInflater(LayoutInflater original, Context newContext, MvxBindingVisitor bindingVisitor, bool cloned)
            : base(original, newContext)
        {
            this._bindingVisitor = bindingVisitor ?? new MvxBindingVisitor();

            this.SetupLayoutFactories(cloned);
        }
Beispiel #45
0
        public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate (Resource.Layout.FeedbackFragment, container, false);
            feedbackPositiveButton = view.FindViewById<ImageButton> (Resource.Id.FeedbackPositiveButton);
            feedbackNeutralButton = view.FindViewById<ImageButton> (Resource.Id.FeedbackNeutralButton);
            feedbackNegativeButton = view.FindViewById<ImageButton> (Resource.Id.FeedbackNegativeButton);

            feedbackPositiveButton.Click += (sender, e) => SetRating (ratingPositive);
            feedbackNeutralButton.Click += (sender, e) => SetRating (ratingNeutral);
            feedbackNegativeButton.Click += (sender, e) => SetRating (ratingNegative);

            feedbackMessageEditText = view.FindViewById<EditText> (Resource.Id.FeedbackMessageText).SetFont (Font.Roboto);
            feedbackMessageEditText.AfterTextChanged += OnEdit;

            submitFeedbackButton = view.FindViewById<Button> (Resource.Id.SendFeedbackButton).SetFont (Font.Roboto);
            submitFeedbackButton.Click += OnSendClick;

            feedbackContainer = view.FindViewById<LinearLayout> (Resource.Id.FeedbackContainer);
            disclaimerContainer = view.FindViewById<LinearLayout> (Resource.Id.FeedbackDisclaimer);
            noUserRegisterButton = view.FindViewById<Button> (Resource.Id.FeedbackRegisterButton);

            bool offline = ServiceContainer.Resolve<AuthManager> ().OfflineMode;
            disclaimerContainer.Visibility = offline ? ViewStates.Visible : ViewStates.Gone;
            feedbackContainer.Visibility = offline ? ViewStates.Gone : ViewStates.Visible;

            noUserRegisterButton.Click += OpenRegisterScreen;

            SetRating (userRating);

            return view;
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            rootview = new RelativeLayout (nn_activity);
            rootview.LayoutParameters = new RelativeLayout.LayoutParams (RelativeLayout.LayoutParams.MatchParent, RelativeLayout.LayoutParams.MatchParent);
            rootview.SetBackgroundColor (Resources.GetColor(Resource.Color.soarnix_bg_gray));
            rootview.Id = TapUtil.generateViewId ();

            //list to show event history

            historyeventlist = new ListView (nn_activity);
            historyeventlist.LayoutParameters= new RelativeLayout.LayoutParams (RelativeLayout.LayoutParams.MatchParent, RelativeLayout.LayoutParams.MatchParent);
            historyeventlist.Id = TapUtil.generateViewId ();

            adapter = new EventHistoryListAdapter (nn_activity,historylist);
            historyeventlist.Adapter = adapter;

            //add a relative layout to rootview to show no result event
            nohistorylayout=new RelativeLayout(nn_activity);
            nohistorylayout.LayoutParameters= new RelativeLayout.LayoutParams (RelativeLayout.LayoutParams.MatchParent, RelativeLayout.LayoutParams.MatchParent);
            nohistorylayout.SetBackgroundResource(Resource.Color.soarnix_bg_gray);
            nohistorylayout.Visibility = ViewStates.Gone;

            nohistorytext = new TextView (nn_activity);
            nohistorytext.Text = HistoryScreenData.NoRecordMessage;
            nohistorytext.Gravity = GravityFlags.Center;
            RelativeLayout.LayoutParams nohistorytextparam=new RelativeLayout.LayoutParams (RelativeLayout.LayoutParams.WrapContent, RelativeLayout.LayoutParams.WrapContent);
            nohistorytextparam.AddRule (LayoutRules.CenterInParent);
            nohistorytextparam.SetMargins (TapUtil.dptodx (10), 0, TapUtil.dptodx (10), 0);
            nohistorytext.LayoutParameters = nohistorytextparam;

            nohistorylayout.AddView (nohistorytext);
            rootview.AddView (historyeventlist);
            rootview.AddView (nohistorylayout);
            return rootview;
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            base.OnCreateView (inflater, container, savedInstanceState);
            var view = inflater.Inflate (Resource.Layout.DocumentFragmentLayout, null, true);

            documentListView = view.FindViewById<ListView> (Resource.Id.documentsListView);
            if (Documents != null)
                documentListView.Adapter = new DocumentsAdapter (Activity, Resource.Layout.DocumentListItemLayout, Documents);

            documentListView.ItemClick += (sender, e) => {
                var textView = e.View.FindViewById<TextView> (Resource.Id.documentListItemDocTitle);

                var document = Documents.ElementAtOrDefault ((int)textView.Tag);

                //start intent with the uri path of the document
                var strings = document.Path.Split ('/');
                CopyReadAsset (strings [1]);
                var intent = new Intent (Intent.ActionView);
                var uri = Uri.FromFile (file);
                intent.SetDataAndType (uri, "application/pdf");
                intent.SetFlags (ActivityFlags.ClearTop);
                try {
                    Activity.StartActivity (intent);
                } catch (ActivityNotFoundException exc) {
                    Log.WriteLine (LogPriority.Error, Constants.LogTag, exc.Message);
                }
            };

            return view;
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Bundle savedInstanceState)
        {
            View     rootView = inflater.Inflate(Resource.Layout.fragment_main, container, false);
            TextView textView = rootView.FindViewById <TextView> (Resource.Id.section_label);

            textView.Text = GetString(Resource.String.section_format, Arguments.GetInt(ARG_SECTION_NUMBER));
            return(rootView);
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            var view = base.OnCreateView(inflater, container, savedInstanceState);

            RecyclerView = view.FindViewById <MvxRecyclerView>(Resource.Id.app_products_catalog_items);

            return(view);
        }
Beispiel #50
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            var toReturn = base.OnCreateView(inflater, container, savedInstanceState);

            CreateBinding(inflater);

            return(toReturn);
        }
Beispiel #51
0
        public override View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            var ignored = base.OnCreateView(inflater, container, savedInstanceState);

            var view = this.BindingInflate(Resource.Layout.tab_EmployeeAddress, null);

            return(view);
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Bundle savedInstanceState)
        {
            var    ignored    = base.OnCreateView(inflater, container, savedInstanceState);
            var    view       = (ViewGroup)inflater.Inflate(Resource.Layout.layout_news, null);
            var    viewGroup  = (ViewGroup)inflater.Inflate(Resource.Layout.layout_group, null);
            string string_key = "41f579fc-1445-4065-ab10-c06d50e724d3";
            //NewsDetail = new NewsFragmentDetail ();

            //var mFragmentItemContainer = viewGroup.FindViewById<FrameLayout> (Resource.Id.fragment4Container);

            Button button = viewGroup.FindViewById <Button> (Resource.Id.btnDetalle);

            mFrameLayoutContainer = view.FindViewById <FrameLayout> (Resource.Id.RelativeLay);

            var trans = Activity.SupportFragmentManager.BeginTransaction();

            //trans.Add (mFragmentItemContainer.Id, new NewsFragmentDetail (), "Detail");
            //trans.Add (Resource.Id.layout_content, NewsDetail);
            //trans.Hide (NewsDetail);
            mCurrentFragment = this;
            trans.Commit();


            mRecyclerView = view.FindViewById <RecyclerView> (Resource.Id.RecyclerViewer);
            //Pruebas

            //cocoservices.tinnova.mx.COCOService cliente = new Navigation_View.cocoservices.tinnova.mx.COCOService ();
            //Navigation_View.cocoservices.tinnova.mx.PublicationDTO[] mPublicacion = new Navigation_View.cocoservices.tinnova.mx.PublicationDTO[5];

            //Produccion

            services_911consumidor_com.COCOService cliente = new Navigation_View.services_911consumidor_com.COCOService();
            Navigation_View.services_911consumidor_com.PublicationDTO[] mPublicacion = new Navigation_View.services_911consumidor_com.PublicationDTO[5];

            mPublicacion   = cliente.GetActivePublications(string_key);
            mPublicaciones = new List <Publicaciones> ();

            foreach (PublicationDTO value in mPublicacion)
            {
                mPublicaciones.Add(new Publicaciones {
                    Titulo           = value.Tittle,
                    FechaPublicacion = value.PublicationDate,
                    Subtitulo        = value.SubTittle,
                    Imagen           = value.ImageUrl,
                    IdPublicacion    = value.Id,
                    Contenido        = value.Content
                });
            }

            mLayoutManager = new LinearLayoutManager(view.Context);
            mRecyclerView.SetLayoutManager(mLayoutManager);
            mAdapter = new adapter_listview(mPublicaciones, mRecyclerView, view.Context);
            mRecyclerView.SetAdapter(mAdapter);


            return(view);
            // Create your fragment here
        }
Beispiel #53
0
            public override AView OnCreateView(ALayoutInflater inflater, AViewGroup container, Bundle savedInstanceState)
            {
                ScopedMauiContext = _mauiContext.MakeScoped(layoutInflater: inflater, fragmentManager: ChildFragmentManager, registerNewNavigationRoot: true);
                _ = _window.ToHandler(ScopedMauiContext);
                var rootView = ScopedMauiContext.GetNavigationRootManager().RootView;

                rootView.LayoutParameters = new LinearLayoutCompat.LayoutParams(500, 500);
                return(rootView);
            }
        private async void InitList(Android.Views.View context, Android.Views.LayoutInflater inflater)
        {
            cts.Cancel();
            //Load from local first
            await Task.Factory.StartNew(() => LoadData(context, true));

            listActioner = new ListActionHelper(listAdapter, listView, activity, isWorkshop);
            //Do background refresh
            await Task.Factory.StartNew(() => LoadData(context, false));
        }
Beispiel #55
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            base.OnCreateView(inflater, container, savedInstanceState);
            var view = inflater.Inflate(Resource.Layout.fragment_question, container, false);

            choicesRadioGroup = (ViewGroup)view.FindViewById <RadioGroup> (Resource.Id.choicesRadioGrp);
            questionTxt       = view.FindViewById <TextView> (Resource.Id.questionTxt);
            populateChoices(view);
            return(view);
        }
Beispiel #56
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            Dialog.Window.RequestFeature(WindowFeatures.NoTitle);

            var view = inflater.Inflate(Resource.Layout.Add_New_Stopping_Point, container, false);

            InitalizeLocalControls(view);
            InitalizeEvents();

            return(view);
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            this.HasOptionsMenu = true;
            var ignored = base.OnCreateView(inflater, container, savedInstanceState);

            var view = inflater.Inflate(Resource.Layout.MainContentLayout2, null);

            tv_AccountNumber      = view.FindViewById <TextView>(Resource.Id.tv_ClientAccountNumber);
            tv_AccountNumber.Text = Settings.ClientAccountNumber;

            tv_OurClient      = view.FindViewById <TextView>(Resource.Id.tv_OurClient);
            tv_OurClient.Text = Settings.OurClient;

            tv_RefNumber      = view.FindViewById <TextView>(Resource.Id.tv_RefNumber);
            tv_RefNumber.Text = Settings.RefNumber;

            tv_OutStanding      = view.FindViewById <TextView>(Resource.Id.tv_OutStanding);
            tv_OutStanding.Text = MoneyFormat.Convert(Settings.TotalOutstanding);


            tv_NextInstalment = view.FindViewById <TextView>(Resource.Id.tv_NextInstalment);

            ll_NextInstalment = view.FindViewById <LinearLayout>(Resource.Id.ll_NextInstalment_0);

            if (Settings.NextPaymentInstallment > 0)
            {
                tv_NextInstalment.Text = MoneyFormat.Convert(Settings.NextPaymentInstallment);
            }
            else
            {
                ll_NextInstalment.Visibility = ViewStates.Invisible;
            }


            ln_make_payment        = view.FindViewById <LinearLayout>(Resource.Id.ln_make_payment);
            ln_make_payment.Touch += ln_make_paymentTouch;

            ln_payment_tracker        = view.FindViewById <LinearLayout>(Resource.Id.ln_payment_tracker);
            ln_payment_tracker.Touch += Ln_payment_tracker_Touch;

            ln_installment_info        = view.FindViewById <LinearLayout>(Resource.Id.ln_instalment_info);
            ln_installment_info.Touch += Ln_installment_Info;

            ln_defer_payment        = view.FindViewById <LinearLayout>(Resource.Id.ln_defer_payment);
            ln_defer_payment.Touch += Ln_defer_payment_Touch;

            ln_schedule_callback        = view.FindViewById <LinearLayout>(Resource.Id.ln_schedule_callback);
            ln_schedule_callback.Touch += Ln_schedule_callback_Touch;

            ln_inbox        = view.FindViewById <LinearLayout>(Resource.Id.ln_inbox);
            ln_inbox.Touch += Ln_inbox_Touch;

            return(view);
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            View rootView = inflater.Inflate(Resource.Layout.fragment_gauge_customization, container, false);

            gauge = (RadRadialGaugeView)rootView.FindViewById(Resource.Id.radial_gauge);

            GaugeRadialScale scale = new GaugeRadialScale(Activity);

            scale.StartAngle  = 0;
            scale.SweepAngle  = 360;
            scale.LineVisible = false;
            scale.SetRange(0, 100);
            scale.TicksVisible  = false;
            scale.LabelsVisible = false;

            // >> gauges-indicators-bars
            int[] transparentColors = new int[] {
                Color.Argb(100, 224, 151, 36),
                Color.Argb(100, 196, 241, 57),
                Color.Argb(100, 132, 235, 247)
            };

            int[] colors = new int[] {
                Color.Argb(255, 224, 151, 36),
                Color.Argb(255, 196, 241, 57),
                Color.Argb(255, 132, 235, 247)
            };

            for (int i = 0; i < 3; i++)
            {
                GaugeRadialBarIndicator trnspIndicator = new GaugeRadialBarIndicator(Activity);
                trnspIndicator.Minimum   = 0;
                trnspIndicator.Maximum   = 100;
                trnspIndicator.FillColor = transparentColors[i];
                trnspIndicator.BarWidth  = 0.2f;
                trnspIndicator.Location  = 0.5f + i * 0.25f;
                scale.AddIndicator(trnspIndicator);

                GaugeRadialBarIndicator indicator = new GaugeRadialBarIndicator(Activity);
                indicator.Minimum = 0;
                Random r = new Random();
                indicator.Maximum           = r.Next(100);
                indicator.Animated          = true;
                indicator.AnimationDuration = 500;
                indicator.BarWidth          = 0.2f;
                indicator.Location          = 0.5f + i * 0.25f;
                indicator.FillColor         = colors[i];
                indicator.Cap = GaugeBarIndicatorCapMode.Round;
                scale.AddIndicator(indicator);
            }
            // << gauges-indicators-bars
            gauge.AddScale(scale);
            return(rootView);
        }
Beispiel #59
0
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            this.HasOptionsMenu = true;
            View     ignored = base.OnCreateView(inflater, container, savedInstanceState);
            View     view    = inflater.Inflate(Resource.Layout.fragment_restaurant, null);
            ListView grid    = view.FindViewById <ListView>(Resource.Id.listview);

            _items       = Util.GenerateRestaurants();
            grid.Adapter = new RestaurantAdapter(Activity, _items);
            //grid.ItemClick += GridOnItemClick;
            return(view);
        }
        public override Android.Views.View OnCreateView(Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState)
        {
            var      RootView = inflater.Inflate(Resource.Layout.loading_spinner_dialog, container, false);
            TextView txtName  = RootView.FindViewById <TextView>(Resource.Id.txtindicator);

            txtName.Text = title;
            this.Dialog.Window.RequestFeature(WindowFeatures.NoTitle);
            this.Dialog.SetCancelable(false);
            this.Dialog.SetCanceledOnTouchOutside(false);
            this.SetStyle(DialogFragment.StyleNoTitle, 0);
            return(RootView);
        }