Setting Button ID programmatically

前端 未结 6 1395
慢半拍i
慢半拍i 2021-01-01 04:10

Android 2.3.3

I have a table with N rows and N columns. For each row, I should add 4 buttons dynamically, and later do actions based on the button clicked. I know we

6条回答
  •  清歌不尽
    2021-01-01 04:41

    No you cannot set it to String, the id is int value, even when you set it from XML it is just the resource name of an int value

提交回复
热议问题