The Android control bottomsheet realizes the pop-up selection list at the bottom

A selection list pops up at the bottom. This is a good method for common selection conditions or jump, which can hide various options. Pop up at the bottom when needed. Bottomsheet is such a control.

use

1. Import build

compile 'com.cocosw:bottomsheet:1.3.0'

2. Add the following code to RES / values / colors.xml file:

3. Add the following styles to RES / values / styles.xml

4. Create a menu folder in the res folder and create the layout XML file of the list under it. Create a gank as follows_ bottomsheet.xml

5. In the layout XML:

6. Use in Java file:

design sketch:

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>