I have a listview with custom listadapter, which populates the listview with a checkbox and some textviews. When the user selects a checkbox, I need a button bar to slide into the view from the bottom of the screen and sit there. I have made the buttons-bar and can make it appear and disappear from screen by changing it's visibility to "gone" and "visible", but it does not do these with slide-in and slide-out effect. How do I make it do those animations??
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Below is the runtime code implementation, modify accordingly if you need it for other purposes.
You want to use Animation xml resources.
Here is an example of an Animation xml that will 'slide' the object up from the bottom of the screen to where ever its place is within your layout:
You will put that in your res/anim folder then use this java code to animate your view:
You'll want to put the startAnimation call inside where you get the callback that your CheckBox has been checked.