void move_settings_to_view() {
ViewGroup t = (ViewGroup) findViewById(R.id.label_func_table); //table
//loop thru input rows, skipping first (headings)
int ndx = 0;
for (int i = 1; i < t.getChildCount(); i++) {
ViewGroup r = (ViewGroup) t.getChildAt(i);
//move to next non-blank array entry if it exists
while (ndx < aFnc.size() && aLbl.get(ndx).length() == 0)
ndx++;
if (ndx < aFnc.size()) {
((EditText) r.getChildAt(0)).setText(aLbl.get(ndx));
((EditText) r.getChildAt(1)).setText(aFnc.get(ndx).toString());
ndx++;
} else {
//
// work around for known EditText bug - see http://code.google.com/p/android/issues/detail?id=17508
// ((EditText)r.getChildAt(0)).setText("");
// ((EditText)r.getChildAt(1)).setText("");
TextKeyListener.clear(((EditText) r.getChildAt(0)).getText());
TextKeyListener.clear(((EditText) r.getChildAt(1)).getText());
}
}
}
function_settings.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:EngineDriver
作者:
评论列表
文章目录