title: How to add dynamic action items to android BottomSheet?
body: <p>I am developing an app that would implement a <code>BottomSheet</code> like Google material design one. All I found is a static actions that can be added to the Sheet, like this using this library <a href="https://github.com/soarcn/BottomSheet" rel="nofollow">BottomSheet</a>:</p>
  
  <pre><code>new BottomSheet.Builder(this).title("title").sheet(R.menu.list).listener(new DialogInterface.OnClickListener() {
                      @Override
                      public void onClick(DialogInterface dialog, int which) {
                          switch (which) {
                              case R.id.help:
                                  q.toast("Help me!");
                                  break;
                          }
                      }
                  }).show();
  </code></pre>
  
  <p>Here, <code>R.menu.list</code> loads static actions into the <code>BottomSheet</code>.
  What I wanted is to add dynamic action items to it, for example, an <code>ArrayList</code> of actions. Any idea?</p>
  
  <p>Btw, I tried to add this tag "bottom-sheet" to my question, but I don't have privileges for that.</p>