Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的应用程序有一点问题。在我的应用程序中动态创建一个 EditText 表,获得一个 EditText 数组,此时想要绘制,当我单击 EditText 我的键盘而不是默认键盘时。如何处理 EditText 数组的单击?
尝试 :
for(int i=0; i<etArray.lenght; i++) { etArray[i].setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub } }); }