private void loadRowsStandard(){
  adapter=new ArrayObjectAdapter(new ListRowPresenter());
  for (  Video[] categoryVideos : videoList) {
    ArrayObjectAdapter videoCategoryAdapter=new ArrayObjectAdapter(new VideoPresenter());
    videoCategoryAdapter.addAll(0,Arrays.asList(categoryVideos));
    ListRow row=new ListRow(new HeaderItem(categoryVideos[0].category),videoCategoryAdapter);
    adapter.add(row);
  }
  if (useStockBrowseFragment) {
    if (useSupportVersion) {
      browseStockSupportFragment.setAdapter(adapter);
      browseStockSupportFragment.setOnItemViewClickedListener(browseClickListener);
      browseStockSupportFragment.setOnSearchClickedListener(searchClickListener);
      browseStockSupportFragment.setTitle("Google Videos");
    }
 else {
      browseStockFragment.setAdapter(adapter);
      browseStockFragment.setOnItemViewClickedListener(browseClickListener);
      browseStockFragment.setOnSearchClickedListener(searchClickListener);
      browseStockFragment.setTitle("Google Videos");
    }
  }
 else {
    if (useSupportVersion) {
      browseSupportFragment.setAdapter(adapter);
      browseSupportFragment.setOnItemViewClickedListener(browseClickListener);
      browseSupportFragment.setOnSearchClickedListener(searchClickListener);
      browseSupportFragment.setTitle("Google Videos");
    }
 else {
      browseFragment.setAdapter(adapter);
      browseFragment.setOnItemViewClickedListener(browseClickListener);
      browseFragment.setOnSearchClickedListener(searchClickListener);
      browseFragment.setTitle("Google Videos");
    }
  }
}

private void loadRowsStandard ( ) { adapter = new ArrayObjectAdapter ( new ListRowPresenter ( ) ) ; for ( Video [ ] categoryVideos : videoList ) { ArrayObjectAdapter videoCategoryAdapter = new ArrayObjectAdapter ( new VideoPresenter ( ) ) ; videoCategoryAdapter . addAll ( 0 , Arrays . asList ( categoryVideos ) ) ; ListRow row = new ListRow ( new HeaderItem ( categoryVideos [ 0 ] . category ) , videoCategoryAdapter ) ; adapter . add ( row ) ; } if ( useStockBrowseFragment ) { if ( useSupportVersion ) { browseStockSupportFragment . setAdapter ( adapter ) ; browseStockSupportFragment . setOnItemViewClickedListener ( browseClickListener ) ; browseStockSupportFragment . setOnSearchClickedListener ( searchClickListener ) ; browseStockSupportFragment . setTitle ( "Google Videos" ) ; } else { browseStockFragment . setAdapter ( adapter ) ; browseStockFragment . setOnItemViewClickedListener ( browseClickListener ) ; browseStockFragment . setOnSearchClickedListener ( searchClickListener ) ; browseStockFragment . setTitle ( "Google Videos" ) ; } } else { if ( useSupportVersion ) { browseSupportFragment . setAdapter ( adapter ) ; browseSupportFragment . setOnItemViewClickedListener ( browseClickListener ) ; browseSupportFragment . setOnSearchClickedListener ( searchClickListener ) ; browseSupportFragment . setTitle ( "Google Videos" ) ; } else { browseFragment . setAdapter ( adapter ) ; browseFragment . setOnItemViewClickedListener ( browseClickListener ) ; browseFragment . setOnSearchClickedListener ( searchClickListener ) ; browseFragment . setTitle ( "Google Videos" ) ; } } }
loads the video data into the adapter . videos are loaded using the standard browsefragment behavior , regardless of what type of browsefragment component is being used ( more specifically , the original leanback one or the custom one provided by this library ) .
