public static OnBoardingFragment NewInstance(OnBoardingCard card)
        {
            var args = new Bundle();

            args.PutString(PageTitle, card.GetTitle());
            args.PutString(PageDescription, card.GetDescription());
            args.PutInt(PageTitleResId, card.GetTitleResourceId());
            args.PutInt(PageDescriptionResId, card.GetDescriptionResourceId());
            args.PutInt(PageTitleColor, card.GetTitleColor());
            args.PutInt(PageDescriptionColor, card.GetDescriptionColor());
            args.PutInt(PageImageResId, card.GetImageResourceId());
            args.PutFloat(PageTitleTextSize, card.GetTitleTextSize());
            args.PutFloat(PageDescriptionTextSize, card.GetDescriptionTextSize());
            args.PutInt(PageBackgroundColor, card.GetBackgroundColor());
            args.PutInt(PageIconHeight, card.GetIconHeight());
            args.PutInt(PageIconWidth, card.GetIconWidth());
            args.PutInt(PageMarginLeft, card.GetMarginLeft());
            args.PutInt(PageMarginRight, card.GetMarginRight());
            args.PutInt(PageMarginTop, card.GetMarginTop());
            args.PutInt(PageMarginBottom, card.GetMarginBottom());

            var fragment = new OnBoardingFragment {
                Arguments = args
            };

            return(fragment);
        }
Esempio n. 2
0
 private void AddCardFragment(OnBoardingCard page)
 {
     mFragments.Add(OnBoardingFragment.NewInstance(page));
 }