Back to project page andro_auto_framework.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project andro_auto_framework 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 org.imaginea.botbot; /*w ww . j a v a 2 s. c o m*/ import java.util.HashMap; public class ViewClasses { private HashMap<String, String> supportedViews = new HashMap<String, String>(); public ViewClasses() { supportedViews.put("Button", "android.widget.Button"); supportedViews.put("CheckBox", "android.widget.CheckBox"); supportedViews.put("CheckedTextView", "android.widget.CheckedTextView"); supportedViews.put("EditText", "android.widget.EditText"); supportedViews.put("RadioButton", "android.widget.RadioButton"); supportedViews.put("TextView", "android.widget.TextView"); supportedViews.put("ToggleButton", "android.widget.ToggleButton"); supportedViews.put("WebView", "android.webkit.WebView"); supportedViews.put("Spinner", "android.widget.Spinner"); } public boolean isSupportedClass(String className) { for (String supportedTypes : supportedViews.keySet()) { if (className.contains(supportedTypes)) { return true; } } return false; } public String getFullClassName(String className) { for (String supportedTypes : supportedViews.keySet()) { if (className.contains(supportedTypes)) { return supportedViews.get(supportedTypes); } } return ""; } }