List of usage examples for android.view View findViewWithTag
public final <T extends View> T findViewWithTag(Object tag)
From source file:com.benefit.buy.library.http.query.AbstractAQuery.java
private View findView(String tag) { //((ViewGroup)findViewById(android.R.id.content)).getChildAt(0) View result = null;/* w w w . j a v a 2 s.c o m*/ if (root != null) { result = root.findViewWithTag(tag); } else if (act != null) { //result = act.findViewById(id); View top = ((ViewGroup) act.findViewById(android.R.id.content)).getChildAt(0); if (top != null) { result = top.findViewWithTag(tag); } } return result; }
From source file:com.androidquery.AbstractAQuery.java
private View findView(String tag) { //((ViewGroup)findViewById(android.R.id.content)).getChildAt(0) View result = null;/*from w ww. j a va2s .co m*/ if (root != null) { result = root.findViewWithTag(tag); } else if (act != null) { //result = act.findViewById(id); View top = ((ViewGroup) act.findViewById(android.R.id.content)).getChildAt(0); if (top != null) { result = top.findViewWithTag(tag); } } return result; }
From source file:org.bangbang.support.v4.widget.HListView.java
View findViewTagInHeadersOrFooters(ArrayList<FixedViewInfo> where, Object tag) { if (where != null) { int len = where.size(); View v; for (int i = 0; i < len; i++) { v = where.get(i).view;//from w ww . ja va 2 s .co m // bysong // if (!v.isRootNamespace()) { if (!ReflectUtil.view_isRootNamespace(v)) { v = v.findViewWithTag(tag); if (v != null) { return v; } } } } return null; }