FindViewById where ID is dynamic string

前端 未结 3 1723
甜味超标
甜味超标 2020-12-16 13:58

I have a table of 40 squares and each has an ID. When I\'m passing Bundle from another activity I need to extract Note, Color and ID from that bundle. And then the app will

3条回答
  •  太阳男子
    2020-12-16 14:45

    Man I'm not understating what exactly you want to do. Id is the id off an android widget then on function initialize() you should cast string to int this way: Integer.ValueOf(Id) Hope this is what you want.

提交回复
热议问题