2024-09-21 13:09:47
在java中 把所有button的id放入一个int的数组里啊
int[] buttonIDs= { R.id.button1, R.id.button2,
R.id.button3, R.id.button4, R.id.button5};
String[] buttonNames= {button1, button2,
button3, button4, button5};
void findButton(){
for(int i=0;i<buttonIDs.lenth;i++)
buttonNames[i] = findviewbyid(buttonIDs[i]);
}
2024-09-21 18:14:34
2024-09-21 03:25:02
2024-09-21 06:44:27
2024-09-21 13:24:20