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; // w w w .j a va 2s . com import com.nikhaldimann.viewselector.attributes.ViewSelectionAttribute; import com.nikhaldimann.viewselector.selection.ViewSelection; /** * An attribute extractor, generally used via calling * {@code ViewSelectorAssertions.extractAttribute(String)}. */ public class Attributes { private final String attributeName; public Attributes(String attributeName) { this.attributeName = attributeName; } /** * @param selection the selection to extract attributes from * @return extracted attributes ready to make assertions about */ public ViewSelectionAttribute from(ViewSelection selection) { return new ViewSelectionAttribute(selection, attributeName); } }