| | |
| | | } |
| | | ((MultiChoiceModeWrapper) mMultiChoiceModeCallback).setWrapped(listener); |
| | | } else { |
| | | System.out.println("AbsHListView.setMultiChoiceModeListener"); |
| | | System1.out.println("AbsHListView.setMultiChoiceModeListener"); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | return mSelector; |
| | | } |
| | | |
| | | /** |
| | | * Set a Drawable that should be used to highlight the currently selected item. |
| | | * |
| | | * @param resID A Drawable resource to use as the selection highlight. |
| | | * @attr ref android.R.styleable#AbsListView_listSelector |
| | | */ |
| | | public void setSelector(int resID) { |
| | | setSelector(getResources().getDrawable(resID)); |
| | | } |
| | | |
| | | public void setSelector(Drawable sel) { |
| | | if (mSelector != null) { |
| | | mSelector.setCallback(null); |
| | |
| | | } |
| | | |
| | | /** |
| | | * Set a Drawable that should be used to highlight the currently selected item. |
| | | * |
| | | * @param resID A Drawable resource to use as the selection highlight. |
| | | * @attr ref android.R.styleable#AbsListView_listSelector |
| | | */ |
| | | public void setSelector(int resID) { |
| | | setSelector(getResources().getDrawable(resID)); |
| | | } |
| | | |
| | | /** |
| | | * Sets the selector state to "pressed" and posts a CheckForKeyLongPress to see if this is a long press. |
| | | */ |
| | | protected void keyPressed() { |