Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 351 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 351 Bytes

MultiEditTextView

##Android自定义复合视图,动态增加View

`<public List getFriendNames() {

	List<String> names = new ArrayList<String>();
	for (int i = 0; i < getChildCount(); i++) {
		View v = getChildAt(i);
		if (v instanceof EditText) {
			names.add(((EditText) v).getText().toString());
		}

	}
	return names;
}

`