如何获取android中触摸的textview的id [英] how to get id of touched textview in android
本文介绍了如何获取android中触摸的textview的id的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
@Override
public boolean onTouch(View v, MotionEvent arg1) {
row1[1].setText(v.getId()); // it always give me false
return true;
}
结构如下:
tablelayout>表格行> textview,textview,textview
structure is like:
tablelayout >table row > textview, textview,textview
推荐答案
这篇关于如何获取android中触摸的textview的id的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文