Exemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Main);

            var itemViewProperties = new ShowcaseViews.ItemViewProperties(Resource.Id.buttonBlocked, Resource.String.showcase_like_title, Resource.String.showcase_like_message);

            var showcaseViews = new ShowcaseViews(this);

            showcaseViews.AddView(itemViewProperties).AddView(itemViewProperties).AddView(itemViewProperties).AddView(itemViewProperties).AddView(itemViewProperties).AddView(itemViewProperties).Show();
        }
Exemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.activity_sample_legacy);

            FindViewById(Resource.Id.buttonLike).Click += delegate
            {
                Toast.MakeText(ApplicationContext, Resource.String.like_message, ToastLength.Short).Show();
            };

            mOptions.Block = false;
            mOptions.HideOnClickOutside = false;

            mViews = new ShowcaseViews(this, new MyShowcaseAcknowledgeListener(this));
            mViews.AddView(new ShowcaseViews.ItemViewProperties(Resource.Id.image, Resource.String.showcase_image_title, Resource.String.showcase_image_message, SHOWCASE_KITTEN_SCALE));
            mViews.AddView(new ShowcaseViews.ItemViewProperties(Resource.Id.buttonLike, Resource.String.showcase_like_title, Resource.String.showcase_like_message, SHOWCASE_LIKE_SCALE));
            mViews.Show();

            if (Build.VERSION.SdkInt >= BuildVersionCodes.Honeycomb)
            {
                enableUp();
            }
        }