Back to project page android-view-selector.
The source code is released under:
Copyright (c) 2013 Nik Haldimann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
If you think the Android project android-view-selector listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nikhaldimann.viewselector.attributes; /*from www . ja v a 2 s . c o m*/ import java.util.ArrayList; import android.view.View; import com.nikhaldimann.viewselector.selection.ViewSelection; /** * Collection representing an attribute of a selection of views made. We're * making this its own type in order to be able to single it out in FEST-style * {@code assertThat()} calls. */ public class ViewSelectionAttribute extends ArrayList<Object> { public ViewSelectionAttribute() { super(); } public ViewSelectionAttribute(ViewSelection selection, String attributeName) { super(); String getterMethodName = ViewAttributes.getGetterMethodName(attributeName); for (View matched : selection) { add(ViewAttributes.callGetterNormalizingStrings(matched, getterMethodName)); } } }