Home
last modified time | relevance | path

Searched refs:convertView (Results 1 – 25 of 97) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java176 public static View convertButton(View convertView, String text, int position) { in convertButton() argument
177 if (((String) convertView.getTag()).equals("button")) { in convertButton()
178 ((Button) convertView).setText(text); in convertButton()
179 convertView.setId(position); in convertButton()
180 return convertView; in convertButton()
216 public static View convertText(View convertView, String text, int position) { in convertText() argument
217 if(convertView.getTag() != null && ((String) convertView.getTag()).equals("text")) { in convertText()
218 ((TextView) convertView).setText(text); in convertText()
219 convertView.setId(position); in convertText()
220 return convertView; in convertText()
[all …]
DGridScenario.java356 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
357 if (convertView != null) { in getView()
358 ((TextView) convertView).setText(getValueAtPosition(position)); in getView()
359 convertView.setId(position); in getView()
360 return convertView; in getView()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListHeterogeneous.java57 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() method in ListHeterogeneous
60 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); in convertView()
62 return ListItemFactory.convertButton(convertView, getValueAtPosition(position), in convertView()
65 return ListItemFactory.convertDoubleText(convertView, getValueAtPosition(position), in convertView()
DListItemsExpandOnSelection.java55 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument
56 ((ExpandWhenSelectedView)convertView).setText(getValueAtPosition(position)); in convertView()
57 return convertView; in convertView()
DListTakeFocusFromSide.java63 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
66 if (convertView == null) { in getView()
69 view = (TextView) convertView; in getView()
/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java93 final View convertView = parent.getChildAt(childIndex); in updateMenuView() local
94 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ? in updateMenuView()
95 ((MenuView.ItemView) convertView).getItemData() : null; in updateMenuView()
96 final View itemView = getItemView(item, convertView, parent); in updateMenuView()
102 if (itemView != convertView) { in updateMenuView()
167 public View getItemView(MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView() argument
169 if (convertView instanceof MenuView.ItemView) { in getItemView()
170 itemView = (MenuView.ItemView) convertView; in getItemView()
DListMenuPresenter.java253 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
254 if (convertView == null) { in getView()
255 convertView = mInflater.inflate(mItemLayoutRes, parent, false); in getView()
258 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView()
260 return convertView; in getView()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DBaseMenuPresenter.java97 final View convertView = parent.getChildAt(childIndex); in updateMenuView() local
98 final MenuItemImpl oldItem = convertView instanceof MenuView.ItemView ? in updateMenuView()
99 ((MenuView.ItemView) convertView).getItemData() : null; in updateMenuView()
100 final View itemView = getItemView(item, convertView, parent); in updateMenuView()
107 if (itemView != convertView) { in updateMenuView()
173 public View getItemView(MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView() argument
175 if (convertView instanceof MenuView.ItemView) { in getItemView()
176 itemView = (MenuView.ItemView) convertView; in getItemView()
DListMenuPresenter.java262 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
263 if (convertView == null) { in getView()
264 convertView = mInflater.inflate(mItemLayoutRes, parent, false); in getView()
267 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView()
269 return convertView; in getView()
/frameworks/ex/chips/src/com/android/ex/chips/
DSingleRecipientArrayAdapter.java42 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
43 if (convertView == null) { in getView()
44 convertView = newView(); in getView()
46 bindView(convertView, getItem(position)); in getView()
47 return convertView; in getView()
/frameworks/base/core/java/android/accounts/
DChooseAccountActivity.java167 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
170 if (convertView == null) { in getView()
171 convertView = mLayoutInflater.inflate(R.layout.choose_account_row, null); in getView()
173 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView()
174 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView()
175 convertView.setTag(holder); in getView()
177 holder = (ViewHolder) convertView.getTag(); in getView()
183 return convertView; in getView()
DChooseAccountTypeActivity.java184 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
187 if (convertView == null) { in getView()
188 convertView = mLayoutInflater.inflate(R.layout.choose_account_row, null); in getView()
190 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView()
191 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView()
192 convertView.setTag(holder); in getView()
194 holder = (ViewHolder) convertView.getTag(); in getView()
200 return convertView; in getView()
/frameworks/base/core/java/android/widget/
DActivityChooserView.java690 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
694 if (convertView == null || convertView.getId() != ITEM_VIEW_TYPE_FOOTER) { in getView()
695 convertView = LayoutInflater.from(getContext()).inflate( in getView()
697 convertView.setId(ITEM_VIEW_TYPE_FOOTER); in getView()
698 TextView titleView = (TextView) convertView.findViewById(R.id.title); in getView()
702 return convertView; in getView()
704 if (convertView == null || convertView.getId() != R.id.list_item) { in getView()
705 convertView = LayoutInflater.from(getContext()).inflate( in getView()
710 ImageView iconView = (ImageView) convertView.findViewById(R.id.icon); in getView()
714 TextView titleView = (TextView) convertView.findViewById(R.id.title); in getView()
[all …]
DSimpleExpandableListAdapter.java222 View convertView, ViewGroup parent) { in getChildView() argument
224 if (convertView == null) { in getChildView()
227 v = convertView; in getChildView()
270 public View getGroupView(int groupPosition, boolean isExpanded, View convertView, in getGroupView() argument
273 if (convertView == null) { in getGroupView()
276 v = convertView; in getGroupView()
DRemoteViewsListAdapter.java85 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
90 if (convertView != null && rv != null && in getView()
91 convertView.getId() == rv.getLayoutId()) { in getView()
92 v = convertView; in getView()
DSimpleAdapter.java113 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
114 return createViewFromResource(position, convertView, parent, mResource); in getView()
117 private View createViewFromResource(int position, View convertView, in createViewFromResource() argument
120 if (convertView == null) { in createViewFromResource()
123 v = convertView; in createViewFromResource()
142 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
143 return createViewFromResource(position, convertView, parent, mDropDownResource); in getDropDownView()
DCursorAdapter.java237 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
245 if (convertView == null) { in getView()
248 v = convertView; in getView()
255 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
259 if (convertView == null) { in getDropDownView()
262 v = convertView; in getDropDownView()
DArrayAdapter.java361 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
362 return createViewFromResource(position, convertView, parent, mResource); in getView()
365 private View createViewFromResource(int position, View convertView, ViewGroup parent, in createViewFromResource() argument
370 if (convertView == null) { in createViewFromResource()
373 view = convertView; in createViewFromResource()
414 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
415 return createViewFromResource(position, convertView, parent, mDropDownResource); in getDropDownView()
DBaseAdapter.java70 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
71 return getView(position, convertView, parent); in getDropDownView()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DActivityChooserView.java696 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
700 if (convertView == null || convertView.getId() != ITEM_VIEW_TYPE_FOOTER) { in getView()
701 convertView = LayoutInflater.from(getContext()).inflate( in getView()
703 convertView.setId(ITEM_VIEW_TYPE_FOOTER); in getView()
704 TextView titleView = (TextView) convertView.findViewById(R.id.title); in getView()
708 return convertView; in getView()
710 if (convertView == null || convertView.getId() != R.id.list_item) { in getView()
711 convertView = LayoutInflater.from(getContext()).inflate( in getView()
716 ImageView iconView = (ImageView) convertView.findViewById(R.id.icon); in getView()
720 TextView titleView = (TextView) convertView.findViewById(R.id.title); in getView()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DMediaRouteChooserDialogFragment.java392 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
396 if (convertView == null) { in getView()
397 convertView = mInflater.inflate(ITEM_LAYOUTS[viewType], parent, false); in getView()
400 holder.text1 = (TextView) convertView.findViewById(R.id.text1); in getView()
401 holder.text2 = (TextView) convertView.findViewById(R.id.text2); in getView()
402 holder.icon = (ImageView) convertView.findViewById(R.id.icon); in getView()
403 holder.check = (CheckBox) convertView.findViewById(R.id.check); in getView()
404 holder.expandGroupButton = (ImageButton) convertView.findViewById( in getView()
411 final View fview = convertView; in getView()
414 convertView.setOnClickListener(new View.OnClickListener() { in getView()
[all …]
/frameworks/support/v4/java/android/support/v4/widget/
DCursorAdapter.java243 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
251 if (convertView == null) { in getView()
254 v = convertView; in getView()
261 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
265 if (convertView == null) { in getDropDownView()
268 v = convertView; in getDropDownView()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListOfEditTexts.java112 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
115 if (convertView != null) { in getView()
116 ((EditText) convertView).setText(body); in getView()
117 return convertView; in getView()
/frameworks/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java323 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
335 view = getHeaderView(i, mPartitions[i].cursor, convertView, parent); in getView()
341 view = getView(i, mPartitions[i].cursor, offset, convertView, parent); in getView()
358 protected View getHeaderView(int partition, Cursor cursor, View convertView, in getHeaderView() argument
360 View view = convertView != null in getHeaderView()
361 ? convertView in getHeaderView()
384 protected View getView(int partition, Cursor cursor, int position, View convertView, in getView() argument
387 if (convertView != null) { in getView()
388 view = convertView; in getView()
/frameworks/opt/mailcommon/java/com/android/mailcommon/
DMergedAdapter.java167 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
169 return result.mAdapter.getView(result.mLocalPosition, convertView, parent); in getView()
173 public View getDropDownView(int position, View convertView, ViewGroup parent) { in getDropDownView() argument
175 return result.mAdapter.getDropDownView(result.mLocalPosition, convertView, parent); in getDropDownView()

1234