title: recyclerview.setLayoutManager()
body: <p>What is the use of  recyclerview.setLayoutManager() in this code?
  Please elaborate it in detail.I know about recyclerview but i am confused on what is the use of setLayoutManager() here? </p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
  public static final int NEW_WORD_ACTIVITY_REQUEST_CODE = 1;
  
  private WordViewModel mWordViewModel;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      Toolbar toolbar = findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      RecyclerView recyclerView = findViewById(R.id.recyclerview);
      final WordListAdapter adapter = new WordListAdapter(this);
      recyclerView.setAdapter(adapter);
      recyclerView.setLayoutManager(new LinearLayoutManager(this));
  </code></pre>