title: How to use the latest version of CardStackView in Android Kotlin?
body: <p>I tried using this github repo (<a href="https://github.com/yuyakaido/CardStackView" rel="nofollow noreferrer">https://github.com/yuyakaido/CardStackView</a>) in my android app but I couldn't get it to work.</p>
  <pre><code>val cardStackView = findViewById&lt;CardStackView&gt;(R.id.card_stack_view)
  cardStackView.layoutManager = CardStackLayoutManager()
  cardStackView.adapter = CardStackAdapter()
  </code></pre>
  <p>The setup code in the documentation no longer works fully. The first line works but the second and third lines result in errors</p>
  <pre><code>cardStackView.layoutManager = CardStackLayoutManager(this)
  </code></pre>
  <p>I used this line as a replacement for the second line but I am not sure whether it works or not because I could not find how to add cards to the stack to test it</p>
  <p>I have tried searching for a solution myself but I did not find anything useful</p>
  <p>Does anyone who know how to properly setup the card stack and add cards to it in the latest version?</p>