Circle image view.
상속: _BaseCircleImageView
예제 #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            base.OnCreateView(inflater, container, savedInstanceState);
            var view = inflater.Inflate(Resource.Layout.fragment_profile, null);

            ratingCircle = view.FindViewById<RatingCircle>(Resource.Id.rating_circle);
            circleImage = view.FindViewById<CircleImageView>(Resource.Id.profile_image);


            viewModel = new ProfileViewModel();
            Square.Picasso.Picasso.With(Activity).Load(Settings.Current.UserProfileUrl).Into(circleImage);

            trips = view.FindViewById<TextView>(Resource.Id.text_trips);
            time = view.FindViewById<TextView>(Resource.Id.text_time);
            distance = view.FindViewById<TextView>(Resource.Id.text_distance);
            maxSpeed = view.FindViewById<TextView>(Resource.Id.text_max_speed);
            fuelUsed = view.FindViewById<TextView>(Resource.Id.text_fuel_consumption);
            accelerations = view.FindViewById<TextView>(Resource.Id.text_hard_accelerations);
            stops = view.FindViewById<TextView>(Resource.Id.text_hard_breaks);
            profileAll = view.FindViewById<LinearLayout>(Resource.Id.text_profile_all);

            profileGreat = view.FindViewById<TextView>(Resource.Id.text_profile_great);
            profileRating = view.FindViewById<TextView>(Resource.Id.text_profile_rating);
            profileAll.Visibility = ViewStates.Invisible;
            UpdateUI();
            return view;
        }
예제 #2
0
            public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
            {
                View row = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.TournamentCard, parent, false);

                TextView EventTitle         = row.FindViewById <TextView>(Resource.Id.EventTitle);
                TextView EventFirstTeam     = row.FindViewById <TextView>(Resource.Id.EventFirstTeam);
                TextView EventSecondaryTeam = row.FindViewById <TextView>(Resource.Id.EventSecondaryTeam);
                TextView EventDate          = row.FindViewById <TextView>(Resource.Id.EventDate);
                TextView EventGame          = row.FindViewById <TextView>(Resource.Id.EventGame);



                Refractored.Controls.CircleImageView platform = row.FindViewById <Refractored.Controls.CircleImageView>(Resource.Id.EventPlatformIcon);
                LinearLayout colorLi = row.FindViewById <LinearLayout>(Resource.Id.colorLayoutWydarzenia);
                //li.SetBackgroundColor(Android.Graphics.Color.Red);

                MyView view = new MyView(row)
                {
                    ETitle = EventTitle, EFTeam = EventFirstTeam, ESTeam = EventSecondaryTeam, EDate = EventDate, EGame = EventGame, mLayout = colorLi
                };

                return(view);
            }