title: Android - how to make TextView fill_parent in code
body: <p>I'm trying to make my TextView layout_width to be fill parent throw code.
  this is my code:</p>
  
  <pre><code> TextView WatchMovieTitle;
  
   private void PrintTheMovieAndYear() {
      if (CountWords() &gt; 23) {
  // this is what im doing wrong
   //             WatchMovieTitle.setLayoutParams
   //    (new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
  
          WatchMovieTitle.setText(movieList.get("movieName") + " " + "("
                  + movieList.get("movieYear") + ")");
          WatchMovieYear.setVisibility(View.GONE);
      } else {
          WatchMovieYear
                  .setText(" " + "(" + movieList.get("movieYear") + ")");
  
      }
  }
  </code></pre>
  
  <p>thanks!</p>