Skip to content

Android自定义复合视图,动态增加View,适合不确定的布局

License

Notifications You must be signed in to change notification settings

bensonX/MultiEditTextView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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;
}

`

About

Android自定义复合视图,动态增加View,适合不确定的布局

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages