Monday, 15 March 2010

Android leanback library ListRowPresenter whole row expand -


I'm trying to expand the whole row is selected in Lanbak Library carousel.

I want the effect of this: what I want

I'm closing the Android TV sample code. I setConnectedRowHyight (..); and setRowHeight (..) have tried;

  / ** * 15-03-16 by sylversphere * Override public vacancies on Public Class Experimental Fragment Browsing (Private Array Object Adapter MRO Adapter; Private Experimental Card Presenter; mCardPresenter; Private Private: NUM_ROWS = 20; Private Profan; NUM_COLS = 40; Private Reference Reference; @ActivityCreated) {Super Current Activity (Saved InstanceState); Reference = getActivity (); SetTitle ("Hello There You Baby"); // Setting Badge, while Setting Up, Eastern Cursor set takes Hedersstet (HEADERS_DISABLED); loadRows ();} private void Loader () {List & lt; Movie & gt; List = MovieList.setupMovies (); final ListRowPresenter lrp = new ListRowPresenter (FocusHighlight.ZOOM_FACTOR_LARGE); lrp. setRowHeight (100); lrp.setExpandedRowHeight (200); MRowsAdapter = new Arreobjekt adapter (LRP); MCardPresenter = new experimental Viewer (); for Int i; (i = 0; i & lt; NUM_ROWS; i ++) { Arre object adapter list for the line adapter = new Arreobjekt adapter (Mseediadeepitr); (Int J = 0; J & lt; NUM_COLS; J ++) {listRowAdapter.add (list.get (j% 5)); } MRowsAdapter.add (new ListRow (listRowAdapter)); } Set adapter (mRowsAdapter); } Say private zero (strings) {toast. Make text (context, "say:" + s, toast. LNNHHRART). Show (); }}  

But the rows remain the same. I tried to animate the lines manually, but the rows are no longer proper padding between them. How do I increase the lines and keep padding?

setExpandedRow you're just determined height, but not really extend line is

  public final void setRowViewExpanded (has expanded the presenter. ViewHolder holder, Boolean)  

No comments:

Post a Comment