public static ActionButtonFragment WithAction(string text, int buttonDrawableId) { var r = new ActionButtonFragment (); r.text = text; r.buttonDrawableId = buttonDrawableId; return r; }
public static ActionButtonFragment WithAction(string text, int buttonDrawableId) { var r = new ActionButtonFragment(); r.text = text; r.buttonDrawableId = buttonDrawableId; return(r); }
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)); }