dextorer / Sofa

A library for Android TV that extends the Leanback library functionalities
Other
148 stars 34 forks source link

IconHeaderItemPresenter feature #12

Closed omenocal closed 8 years ago

omenocal commented 8 years ago

Hi there, I'm trying to put icons left side of the menus. I created a class that extends from RowHeaderPresenter in order to put a leftDrawable to the TextView, but I haven't get it.

omenocal commented 8 years ago

Ok, I have found the solution. It's just a matter to add these lines to the class extending HeadersFragment:

setPresenterSelector(new PresenterSelector() { @Override public Presenter getPresenter(Object o) { return new IconMenuPresenter(getActivity()); } });