title: Displaying CardView as a Dialog in Android
body: <p>I am looking to display a <code>CardVeiw</code> that displays some information for the user. At the same time, I need its behavior to be similar to a dialog, and at the same time, I  need to enable the user to click on the left and right buttons as shown bellow and flip the <code>CardView</code> to display another <code>CardView</code> with richer Content such as some detailed description... Here is an example:</p>
  
  <p>So far I knew that I can create a <code>Dialog</code>, but my content could be scrollable. So it might not be a good practice to use a <code>Dialog</code> in this case (According to <a href="https://material.io/guidelines/components/dialogs.html#dialogs-alerts" rel="nofollow noreferrer">https://material.io/guidelines/components/dialogs.html#dialogs-alerts</a>). </p>
  
  <p><a href="https://i.stack.imgur.com/b6fQ0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b6fQ0.png" alt="enter image description here"></a></p>
  
  <p>So I would like to know what are the best practices for this problem?</p>