@Test public void testCreateSimpleHeaderHolder() { final HeadersModule module = new TestModule(); assertThat(module.createSimpleHeaderHolder(new FrameLayout(context)), is(not(nullValue()))); }
@NonNull public final SimpleHeaderHolder createSimpleHeaderHolder(@NonNull ViewGroup parent) { return new SimpleHeaderHolder(new TextView(parent.getContext(), null, headerStyleAttr)); }
HeadersModule extends AdapterModule { @NonNull public final SimpleHeaderHolder createSimpleHeaderHolder(@NonNull ViewGroup parent) { return new SimpleHeaderHolder(new TextView(parent.getContext(), null, headerStyleAttr)); } }
HeadersModule extends AdapterModule { @NonNull public final SimpleHeaderHolder createSimpleHeaderHolder(@NonNull ViewGroup parent) { return new SimpleHeaderHolder(new TextView(parent.getContext(), null, headerStyleAttr)); }  }
HeadersModule extends AdapterModule { @NonNull public final SimpleHeaderHolder createSimpleHeaderHolder(@NonNull ViewGroup parent) { return new SimpleHeaderHolder(new TextView(parent.getContext(), null, headerStyleAttr)); }  boolean isEmpty(); int size(); boolean isHeaderAt(final int position); @Nullable H getHeader(final int position); @NonNull SparseArray<H> getHeaders(); void clearHeaders(); int correctPosition(final int position); int countHeadersBeforePosition(final int position); void setHeaderStyleAttr(@AttrRes final int styleAttr); @AttrRes int getHeaderStyleAttr(); @NonNull abstract VH createViewHolder(@NonNull ViewGroup parent, int viewType); @NonNull final SimpleHeaderHolder createSimpleHeaderHolder(@NonNull ViewGroup parent); abstract void bindViewHolder(@NonNull VH viewHolder, int position); }
HeadersModule extends AdapterModule { @NonNull public final SimpleHeaderHolder createSimpleHeaderHolder(@NonNull ViewGroup parent) { return new SimpleHeaderHolder(new TextView(parent.getContext(), null, headerStyleAttr)); }  boolean isEmpty(); int size(); boolean isHeaderAt(final int position); @Nullable H getHeader(final int position); @NonNull SparseArray<H> getHeaders(); void clearHeaders(); int correctPosition(final int position); int countHeadersBeforePosition(final int position); void setHeaderStyleAttr(@AttrRes final int styleAttr); @AttrRes int getHeaderStyleAttr(); @NonNull abstract VH createViewHolder(@NonNull ViewGroup parent, int viewType); @NonNull final SimpleHeaderHolder createSimpleHeaderHolder(@NonNull ViewGroup parent); abstract void bindViewHolder(@NonNull VH viewHolder, int position);  }