How to create a navigation drawer without support library

前端 未结 3 1563
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 16:59

I\'m working on a Android project that only support API level > 14. As a consequence, we don\'t use the Android Support Library.

I would like to use the navigat

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 17:38

    You simply use the support library as it contains the functionality you need. It does not matter that you do not want to use the other functionality contained within the library. It does contain the sliding menu that you want to use so just use it.

    The alternative is to write your own code or use a different library.

    Try not to think of the support library as "only for backwards compatibility". It provides functionality that is not included in the standard SDK's (such as ViewPager and SlidingDrawer)

提交回复
热议问题