Does anybody know how to add multiple buttons to a table row dynamically in Android?
相关问题
- 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不能创建表
- Angular Material Stepper causes mat-formfield to v
- 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
After searching for 30 sec I found http://www.warriorpoint.com/blog/2009/07/01/android-creating-tablerow-rows-inside-a-tablelayout-programatically - this should help you, just change TextViews to Buttons.
You can try this and see if it's what your are looking for.
main.xml:
Your Activity class:
Hope it helps.
Here layout is a TableLayout.If you want to add a row dynamically and buttons in that row can use the follwoing code
If you already have row in the layout then just fetch the row and add buttons to the row