Example #1
0
 public static FurnitureInfo ToFurnitureData(ShowcaseConfig c)
 {
     return(new FurnitureInfo
     {
         ID = c.ID,
         Name = c.Name,
         Kind = c.Kind.ToLower(),
         Size = c.Size,
         BoundingBox = c.BoundingBox,
         Price = c.Price,
         Rotations = c.Rotations,
     });
 }
Example #2
0
        private void PresentShowcaseSequence()
        {
            var config = new ShowcaseConfig {
                Delay = 500 // half second between each showcase view
            };


            var sequence = new MaterialShowcaseSequence(this, ShowcaseId);


            sequence.SetOnItemShownListener((itemView, position) =>
                                            Toast.MakeText(itemView.Context, "Item #" + position, ToastLength.Long).Show()

                                            );

            sequence.SetConfig(config);

            sequence.AddSequenceItem(_buttonOne, "This is button one", "GOT IT");

            sequence.AddSequenceItem(
                new MaterialShowcaseView.Builder(this)
                .SetTarget(_buttonTwo)
                .SetDismissText("GOT IT")
                .SetContentText("This is button two")
                .WithRectangleShape(true)
                .Build()
                );

            sequence.AddSequenceItem(
                new MaterialShowcaseView.Builder(this)
                .SetTarget(_buttonThree)
                .SetDismissText("GOT IT")
                .SetContentText("This is button three")
                .WithRectangleShape()
                .Build()
                );

            sequence.Start();
        }