最佳答案
我怎样才能从一个按下的按钮得到文本? (Android)
我可以从一个按钮得到文本:
String buttonText = button.getText();
我可以通过按下的按钮得到 ID:
int buttinID = view.getId();
我现在不知道的是如何在按下的按钮上获得文本。
public void onClick(View view) {
// Get the text on the pressed button
}