Code example for ViewStub

Methods: inflate

0
  } 
 
  private void populateSynopsis(Movie movie) {
    String synopsis = movie.getSynopsis();
    if (synopsis != null) {
      View summarySection = ((ViewStub) overviewTab
          .findViewById(R.id.movie_details_summary_section)).inflate();
      ((TextView) summarySection.findViewById(android.R.id.text1)).setText("Synopsis");
      ((TextView) summarySection.findViewById(android.R.id.text2)).setText(synopsis);
    } 
  } 
 
  private class MovieCreditsHandler extends DefaultTmdbApiHandler<Credits> { 
 
    public MovieCreditsHandler() { 
      super(getActivity()); 
    } 
 
    @Override 
    public boolean onTaskSuccess(Context context, Credits credits) {
      populateCredits(credits);