我是开始开发小型应用程序的初学者.我在屏幕上有3个textview,当我触摸任何一个视图时它应该导航到下一个新屏幕,如何做到这一点帮助我 谢谢, Suhani yourTextView.setOnTouchListener(new OnTouchL
谢谢,
Suhani
yourTextView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) { // do something here when the element is clicked ScreenManager.setCurrent(new YourNewPage()); } // true if the event was handled // and should not be given further down to other views. // if no other child view of this should get the event then return false return true; } });