Ejemplo n.º 1
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     Xamarin.Essentials.Platform.Init(this, savedInstanceState);
     SetContentView(Resource.Layout.activity_main);
     mShimmerViewContainer = FindViewById <ShimmerFrameLayout>(Resource.Id.shimmer_loader);
     mShimmerViewContainer.StartShimmer();
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_main);
            shimmerViewContainer = FindViewById <ShimmerFrameLayout>(Resource.Id.shimmer_view_container);

            presetButtons = new Button[] {
                FindViewById <Button>(Resource.Id.preset_button0),
                FindViewById <Button>(Resource.Id.preset_button1),
                FindViewById <Button>(Resource.Id.preset_button2),
                FindViewById <Button>(Resource.Id.preset_button3),
                FindViewById <Button>(Resource.Id.preset_button4),
            };
            for (int i = 0; i < presetButtons.Length; i++)
            {
                int preset = i;
                presetButtons[i].Click += (s, e) =>
                {
                    SelectPreset(preset, true);
                };
            }
        }