/packages/apps/Contacts/src/com/android/contacts/widget/ |
SingleItemAdapter.java | 39 public View getView(int position, View convertView, ViewGroup parent) { 40 return getView(convertView, parent); 46 protected abstract View getView(View convertView, ViewGroup parent);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
AppViewHolder.java | 23 static public AppViewHolder createOrRecycle(LayoutInflater inflater, View convertView) { 24 if (convertView == null) { 25 convertView = inflater.inflate(R.layout.manage_applications_item, null); 30 holder.rootView = convertView; 31 holder.appName = (TextView) convertView.findViewById(R.id.app_name); 32 holder.appIcon = (ImageView) convertView.findViewById(R.id.app_icon); 33 holder.appSize = (TextView) convertView.findViewById(R.id.app_size); 34 holder.disabled = (TextView) convertView.findViewById(R.id.app_disabled); 35 holder.checkBox = (CheckBox) convertView.findViewById(R.id.app_on_sdcard); 36 convertView.setTag(holder) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
SuggestionViewInflater.java | 63 View convertView, ViewGroup parent) { 64 if (convertView == null || !convertView.getClass().equals(mViewClass)) { 66 convertView = getInflater().inflate(layoutId, parent, false); 68 if (!(convertView instanceof SuggestionView)) { 69 throw new IllegalArgumentException("Not a SuggestionView: " + convertView); 71 ((SuggestionView) convertView).bindAsSuggestion(suggestion, userQuery); 72 return convertView;
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
SelectPopupAdapter.java | 49 public View getView(int position, View convertView, ViewGroup parent) { 56 convertView = super.getView(position, null, parent); 57 ((TextView) convertView).setText(mItems.get(position).getLabel()); 65 if (convertView instanceof CheckedTextView) { 66 ((CheckedTextView) convertView).setCheckMarkDrawable(null); 70 convertView.setEnabled(false); 73 return convertView;
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
QueueAdapter.java | 51 public View getView(int position, View convertView, ViewGroup parent) { 54 if (convertView == null) { 55 convertView = LayoutInflater.from(getContext()) 58 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); 59 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); 60 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); 61 convertView.setTag(holder); 63 holder = (ViewHolder) convertView.getTag(); 80 return convertView;
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
QueueAdapter.java | 51 public View getView(int position, View convertView, ViewGroup parent) { 54 if (convertView == null) { 55 convertView = LayoutInflater.from(getContext()) 58 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); 59 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); 60 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); 61 convertView.setTag(holder); 63 holder = (ViewHolder) convertView.getTag(); 80 return convertView;
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
QueueAdapter.java | 51 public View getView(int position, View convertView, ViewGroup parent) { 54 if (convertView == null) { 55 convertView = LayoutInflater.from(getContext()) 58 holder.mImageView = (ImageView) convertView.findViewById(R.id.play_eq); 59 holder.mTitleView = (TextView) convertView.findViewById(R.id.title); 60 holder.mDescriptionView = (TextView) convertView.findViewById(R.id.description); 61 convertView.setTag(holder); 63 holder = (ViewHolder) convertView.getTag(); 80 return convertView;
|
/frameworks/base/core/java/android/widget/ |
SpinnerAdapter.java | 34 * @param convertView the old view to reuse, if possible. Note: You should 42 public View getDropDownView(int position, View convertView, ViewGroup parent);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List14.java | 37 * - It reuses the convertView passed to getView() to avoid inflating View when it is not necessary 97 public View getView(int position, View convertView, ViewGroup parent) { 102 // When convertView is not null, we can reuse it directly, there is no need 103 // to reinflate it. We only inflate a new View when the convertView supplied 105 if (convertView == null) { 106 convertView = mInflater.inflate(R.layout.list_item_icon_text, null); 111 holder.text = (TextView) convertView.findViewById(R.id.text); 112 holder.icon = (ImageView) convertView.findViewById(R.id.icon); 114 convertView.setTag(holder); 118 holder = (ViewHolder) convertView.getTag() [all...] |
/packages/apps/Stk/src/com/android/stk/ |
StkMenuAdapter.java | 46 public View getView(int position, View convertView, ViewGroup parent) { 49 if (convertView == null) { 50 convertView = mInflater.inflate(R.layout.stk_menu_item, parent, 55 ((TextView) convertView.findViewById(R.id.text)).setText(item.text); 57 ImageView imageView = ((ImageView) convertView.findViewById(R.id.icon)); 65 return convertView;
|
/packages/apps/Browser/src/com/android/browser/addbookmark/ |
FolderSpinnerAdapter.java | 106 public View getDropDownView(int position, View convertView, ViewGroup parent) { 107 if (convertView == null) { 108 convertView = mInflater.inflate( 111 bindView(position, convertView, true); 112 return convertView; 116 public View getView(int position, View convertView, ViewGroup parent) { 117 if (convertView == null) { 118 convertView = mInflater.inflate(android.R.layout.simple_spinner_item, 121 bindView(position, convertView, false); 122 return convertView; [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/appmenu/ |
AppMenuAdapter.java | 142 public View getView(int position, View convertView, ViewGroup parent) { 148 if (convertView == null) { 150 convertView = mInflater.inflate(R.layout.menu_item, parent, false); 151 holder.text = (TextView) convertView.findViewById(R.id.menu_item_text); 152 holder.image = (AppMenuItemIcon) convertView.findViewById(R.id.menu_item_icon); 153 convertView.setTag(holder); 154 convertView.setTag(R.id.menu_item_enter_anim_id, 155 buildStandardItemEnterAnimator(convertView, position)); 157 holder = (StandardMenuItemViewHolder) convertView.getTag(); 160 convertView.setOnClickListener(new OnClickListener() [all...] |
/developers/build/prebuilts/gradle/CustomChoiceList/Application/src/main/java/com/example/android/customchoicelist/ |
MainActivity.java | 58 public View getView(int position, View convertView, ViewGroup container) { 59 if (convertView == null) { 60 convertView = getLayoutInflater().inflate(R.layout.list_item, container, false); 63 ((TextView) convertView.findViewById(android.R.id.text1)) 65 return convertView;
|
/developers/samples/android/ui/lists/CustomChoiceList/Application/src/main/java/com/example/android/customchoicelist/ |
MainActivity.java | 58 public View getView(int position, View convertView, ViewGroup container) { 59 if (convertView == null) { 60 convertView = getLayoutInflater().inflate(R.layout.list_item, container, false); 63 ((TextView) convertView.findViewById(android.R.id.text1)) 65 return convertView;
|
/development/samples/browseable/CustomChoiceList/src/com.example.android.customchoicelist/ |
MainActivity.java | 58 public View getView(int position, View convertView, ViewGroup container) { 59 if (convertView == null) { 60 convertView = getLayoutInflater().inflate(R.layout.list_item, container, false); 63 ((TextView) convertView.findViewById(android.R.id.text1)) 65 return convertView;
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListHeterogeneous.java | 57 public View convertView(int position, View convertView, ViewGroup parent) { 60 return ListItemFactory.convertText(convertView, getValueAtPosition(position), position); 62 return ListItemFactory.convertButton(convertView, getValueAtPosition(position), 65 return ListItemFactory.convertDoubleText(convertView, getValueAtPosition(position),
|
ListItemsExpandOnSelection.java | 55 public View convertView(int position, View convertView, ViewGroup parent) { 56 ((ExpandWhenSelectedView)convertView).setText(getValueAtPosition(position)); 57 return convertView;
|
/packages/apps/UnifiedEmail/src/com/android/mail/drawer/ |
BlankHeaderDrawerItem.java | 39 * @param convertView A previous view, perhaps null 44 public View getView(View convertView, ViewGroup parent) { 46 if (convertView != null) { 47 blankHeaderView = convertView;
|
BottomSpaceDrawerItem.java | 39 * @param convertView A previous view, perhaps null 44 public View getView(View convertView, ViewGroup parent) { 46 if (convertView != null) { 47 blankHeaderView = convertView;
|
WaitViewDrawerItem.java | 39 * @param convertView a view, possibly null, to be recycled. 44 public View getView(View convertView, ViewGroup parent) { 46 if (convertView != null) { 47 emptyView = (ViewGroup) convertView;
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
ListItemFactory.java | 170 * @param convertView Non-null Button created by {@link #button} 175 public static View convertButton(View convertView, String text, int position) { 176 if (((String) convertView.getTag()).equals("button")) { 177 ((Button) convertView).setText(text); 178 convertView.setId(position); 179 return convertView; 210 * @param convertView Non-null TextView created by {@link #text} 215 public static View convertText(View convertView, String text, int position) { 216 if(convertView.getTag() != null && ((String) convertView.getTag()).equals("text")) [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
ListItemFactory.java | 171 * @param convertView Non-null Button created by {@link #button} 176 public static View convertButton(View convertView, String text, int position) { 177 if (((String) convertView.getTag()).equals("button")) { 178 ((Button) convertView).setText(text); 179 convertView.setId(position); 180 return convertView; 211 * @param convertView Non-null TextView created by {@link #text} 216 public static View convertText(View convertView, String text, int position) { 217 if(convertView.getTag() != null && ((String) convertView.getTag()).equals("text")) [all...] |
/external/chromium_org/third_party/webrtc/examples/android/media_demo/src/org/webrtc/webrtcdemo/ |
SpinnerAdapter.java | 33 @Override public View getDropDownView(int position, View convertView, 35 return getCustomView(position, convertView, parent); 38 @Override public View getView(int position, View convertView, 40 return getCustomView(position, convertView, parent);
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
TaskListView.java | 87 public View getView(int position, View convertView, ViewGroup parent) { 88 if(convertView == null) { 90 convertView = inflater.inflate(R.layout.tasklist_row, parent, false); 93 CheckBox checkbox = (CheckBox) convertView.findViewById(R.id.tasklist_finished); 96 TextView label = (TextView)(convertView.findViewById(R.id.tasklist_label)); 105 convertView.setTag(position); 107 return convertView;
|
/development/samples/AppNavigation/src/com/example/android/appnavigation/app/ |
AppNavHomeActivity.java | 109 public View getView(int position, View convertView, ViewGroup parent) { 110 if (convertView == null) { 111 convertView = getLayoutInflater().inflate(android.R.layout.simple_list_item_1, 113 convertView.setTag(convertView.findViewById(android.R.id.text1)); 115 TextView tv = (TextView) convertView.getTag(); 117 return convertView;
|