@Test public void testSetSectionVisible() { mRouteDescriptionItem.setSectionVisible(RouteDescriptionItem.Section.TRAFFIC_WARNING, true); assertTrue(mRouteDescriptionItem.isSectionVisible(RouteDescriptionItem.Section.TRAFFIC_WARNING)); mRouteDescriptionItem.setSectionVisible(RouteDescriptionItem.Section.TRAFFIC_WARNING, false); assertFalse(mRouteDescriptionItem.isSectionVisible(RouteDescriptionItem.Section.TRAFFIC_WARNING)); }
public void setSectionVisible(final Section section, final boolean visible) { if (visible) { mSections.get(section).setVisibility(VISIBLE); } else { mSections.get(section).setVisibility(GONE); } }
RouteDescriptionItem extends BaseView { public void setSectionVisible(final Section section, final boolean visible) { if (visible) { mSections.get(section).setVisibility(VISIBLE); } else { mSections.get(section).setVisibility(GONE); } } }
RouteDescriptionItem extends BaseView { public void setSectionVisible(final Section section, final boolean visible) { if (visible) { mSections.get(section).setVisibility(VISIBLE); } else { mSections.get(section).setVisibility(GONE); } } RouteDescriptionItem(final Context context);  RouteDescriptionItem(final Context context, final AttributeSet attrs);  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); }
RouteDescriptionItem extends BaseView { public void setSectionVisible(final Section section, final boolean visible) { if (visible) { mSections.get(section).setVisibility(VISIBLE); } else { mSections.get(section).setVisibility(GONE); } } RouteDescriptionItem(final Context context);  RouteDescriptionItem(final Context context, final AttributeSet attrs);  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); void setSectionVisible(final Section section, final boolean visible); boolean isSectionVisible(final Section section); EnumSet<Section> getVisibleSections(); void setVisibleSections(final EnumSet<Section> sectionEnumSet); boolean isTrafficEnabled(); void setTrafficEnabled(final boolean isTraffic); Route getRoute(); void setRoute(final Route route); float getSectionBarScaling(); void setSectionBarScaling(final float sectionBarScaling); boolean isBikeOrPedestrian(); }
RouteDescriptionItem extends BaseView { public void setSectionVisible(final Section section, final boolean visible) { if (visible) { mSections.get(section).setVisibility(VISIBLE); } else { mSections.get(section).setVisibility(GONE); } } RouteDescriptionItem(final Context context);  RouteDescriptionItem(final Context context, final AttributeSet attrs);  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  RouteDescriptionItem(final Context context, final AttributeSet attrs, final int defStyleAttr,
            final int defStyleRes); void setSectionVisible(final Section section, final boolean visible); boolean isSectionVisible(final Section section); EnumSet<Section> getVisibleSections(); void setVisibleSections(final EnumSet<Section> sectionEnumSet); boolean isTrafficEnabled(); void setTrafficEnabled(final boolean isTraffic); Route getRoute(); void setRoute(final Route route); float getSectionBarScaling(); void setSectionBarScaling(final float sectionBarScaling); boolean isBikeOrPedestrian();  }