public static ActionButtonFragment WithAction(string text, int buttonDrawableId)
 {
     var r = new ActionButtonFragment ();
     r.text = text;
     r.buttonDrawableId = buttonDrawableId;
     return r;
 }
Esempio n. 2
0
        public static ActionButtonFragment WithAction(string text, int buttonDrawableId)
        {
            var r = new ActionButtonFragment();

            r.text             = text;
            r.buttonDrawableId = buttonDrawableId;
            return(r);
        }
Esempio n. 3
0
        public override Fragment GetFragment(int row, int column)
        {
            if (column == 1)
            {
                return(ActionButtonFragment.WithAction("Navigate", Resource.Drawable.navigate_button));
            }
            if (column == 2)
            {
                return(ActionButtonFragment.WithAction("Add to Favorite", Resource.Drawable.favorite_button));
            }

            return(StationCardFragment.WithStation(stations [row], currentLocation, status));
        }