public static OrderFragment newInstance(String type) { OrderFragment fragment = new OrderFragment(); fragment.type = type; return fragment; }