Esempio n. 1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            _walkerLayout = (WalkerLayout)inflater.Inflate(FragmentLayoutId, container, false);

            _walkerLayout.SetBackgroundColor(BackgroundColor.ToNative());

            //title
            var txtTitle = WalkerLayout.FindViewById <TextView>(TitleResourceId);

            txtTitle.SetControl(TitleControl);

            //image
            var image = WalkerLayout.FindViewById <ImageView>(ImageResourceId);

            image.SetControl(ImageControl);

            //description
            var txtDesc = WalkerLayout.FindViewById <TextView>(DescriptionResourceId);

            txtDesc.SetControl(DescriptionControl);

            return(WalkerLayout);
        }