Search code examples
androidandroid-viewslidingdrawer

SlidingDrawer source


I imported the code for SlidingDrawer from here and created according attr.xml, the problem is, that in the source are still errors, namely fields mTop,mBottom,mLeft and mRight are not defined. How do I implement SlidingDrawer code ?


Solution

  • You may kick yourself for not realizing the answer first

    You can use a getter instead

    For mTop use getTop()

    For mBottom use getBottom()

    For mLeft use getLeft()

    For mRight use getRight()