@Test public void testGetAdapter() { mListView.setAdapter(mAdapter); ListMixin mixin = new ListMixin(mTemplateLayout, null, 0); assertSame(mAdapter, mixin.getAdapter()); }
public ListAdapter getAdapter() { final ListView listView = getListViewInternal(); if (listView != null) { final ListAdapter adapter = listView.getAdapter(); if (adapter instanceof HeaderViewListAdapter) { return ((HeaderViewListAdapter) adapter).getWrappedAdapter(); } return adapter; } return null; }
ListMixin implements Mixin { public ListAdapter getAdapter() { final ListView listView = getListViewInternal(); if (listView != null) { final ListAdapter adapter = listView.getAdapter(); if (adapter instanceof HeaderViewListAdapter) { return ((HeaderViewListAdapter) adapter).getWrappedAdapter(); } return adapter; } return null; } }
ListMixin implements Mixin { public ListAdapter getAdapter() { final ListView listView = getListViewInternal(); if (listView != null) { final ListAdapter adapter = listView.getAdapter(); if (adapter instanceof HeaderViewListAdapter) { return ((HeaderViewListAdapter) adapter).getWrappedAdapter(); } return adapter; } return null; } ListMixin(@NonNull TemplateLayout layout, @Nullable AttributeSet attrs,
            @AttrRes int defStyleAttr); }
ListMixin implements Mixin { public ListAdapter getAdapter() { final ListView listView = getListViewInternal(); if (listView != null) { final ListAdapter adapter = listView.getAdapter(); if (adapter instanceof HeaderViewListAdapter) { return ((HeaderViewListAdapter) adapter).getWrappedAdapter(); } return adapter; } return null; } ListMixin(@NonNull TemplateLayout layout, @Nullable AttributeSet attrs,
            @AttrRes int defStyleAttr); ListView getListView(); void onLayout(); ListAdapter getAdapter(); void setAdapter(ListAdapter adapter); void setDividerInset(int inset); int getDividerInset(); Drawable getDivider(); }
ListMixin implements Mixin { public ListAdapter getAdapter() { final ListView listView = getListViewInternal(); if (listView != null) { final ListAdapter adapter = listView.getAdapter(); if (adapter instanceof HeaderViewListAdapter) { return ((HeaderViewListAdapter) adapter).getWrappedAdapter(); } return adapter; } return null; } ListMixin(@NonNull TemplateLayout layout, @Nullable AttributeSet attrs,
            @AttrRes int defStyleAttr); ListView getListView(); void onLayout(); ListAdapter getAdapter(); void setAdapter(ListAdapter adapter); void setDividerInset(int inset); int getDividerInset(); Drawable getDivider();  }