publicinterface
<wbr style="line-height:25px">SpinnerAdapter</wbr><wbr style="line-height:25px"><br style="line-height:25px"> implementsAdapter<br style="line-height:25px"> ClassOverview<br style="line-height:25px"><span style="color:#000080; line-height:25px">ExtendedAdapterthatisthebridgebetweenaSpinneranditsdata.<br style="line-height:25px"> Aspinneradapterallowstodefinetwodifferentviews:onethatshowsthedatainthespinneritselfandonethatshowsthedatainthedropdownlistwhenthespinnerispressed.<br style="line-height:25px"> SpinnerAdapter是绑定Data和Spinner的适配器.</span><br style="line-height:25px"> 它只申明了一个方法:<br style="line-height:25px"><span style="line-height:normal; color:rgb(51,51,51); font-family:arial,sans-serif; font-size:13px"></span> <table id="pubmethods" style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:1em; margin-left:1em; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-size:0.9em; border-collapse:collapse; empty-cells:show; width:933px"><tbody style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial"> <tr style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial"> <th colspan="12" style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:6px; padding-right:12px; padding-bottom:6px; padding-left:12px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-style:initial; border-color:initial; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); text-align:left; vertical-align:top; background-color:rgb(222,232,241)"> Public Methods</th> </tr> <tr style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; background-color:rgb(246,246,246)"> <td style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:6px; padding-right:12px; padding-bottom:6px; padding-left:12px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-style:initial; border-color:initial; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); text-align:right; vertical-align:top; background-color:inherit"> <nobr style="line-height:21px">abstract<a rel="nofollow" href="http://developer.android.com/reference/android/view/View.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">View</a></nobr> </td> <td width="100%" style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:6px; padding-right:12px; padding-bottom:6px; padding-left:12px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-style:initial; border-color:initial; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); text-align:left; vertical-align:top; background-color:inherit"> <nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/android/widget/SpinnerAdapter.html#getDropDownView(int,%20android.view.View,%20android.view.ViewGroup)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">getDropDownView</a></span>(int position,<a rel="nofollow" href="http://developer.android.com/reference/android/view/View.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">View</a>convertView,<a rel="nofollow" href="http://developer.android.com/reference/android/view/ViewGroup.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">ViewGroup</a>parent)</nobr><div style="line-height:25px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:3px; padding-right:1em; padding-bottom:0px; padding-left:1em; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; border-style:initial; border-color:initial"> <p style="line-height:1.3em; margin-top:0px; margin-bottom:1em; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial"> Get a<code style="line-height:1em; color:rgb(0,112,0); font-family:monospace"><a rel="nofollow" href="http://developer.android.com/reference/android/view/View.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">View</a></code>that displays in the drop down popup the data at the specified position in the data set.</p> </div> </td> </tr> </tbody></table></wbr>参数(<wbr style="line-height:25px">只是定义用于下拉时的显示的接口<wbr style="line-height:25px">)</wbr></wbr>
positionindexoftheitemwhoseviewwewant.
convertViewtheoldviewtoreuse,ifpossible.Note:Youshouldcheckthatthisviewisnon-nullandofanappropriatetypebeforeusing.Ifitisnotpossibletoconvertthisviewtodisplaythecorrectdata,thismethodcancreateanewview.
parenttheparentthatthisviewwilleventuallybeattachedto
Returns
*aViewcorrespondingtothedataatthespecifiedposition.
实现它的类:
BaseAdapter:(implementsListAdapterSpinnerAdapter)
ArrayAdapter<T>
CursorAdapter
ResourceCursorAdapter
SimpleCursorAdapter
SimpleAdapter
实现它的接口:
无
<wbr style="line-height:25px">SpinnerAdapter</wbr><wbr style="line-height:25px"><br style="line-height:25px"> implementsAdapter<br style="line-height:25px"> ClassOverview<br style="line-height:25px"><span style="color:#000080; line-height:25px">ExtendedAdapterthatisthebridgebetweenaSpinneranditsdata.<br style="line-height:25px"> Aspinneradapterallowstodefinetwodifferentviews:onethatshowsthedatainthespinneritselfandonethatshowsthedatainthedropdownlistwhenthespinnerispressed.<br style="line-height:25px"> SpinnerAdapter是绑定Data和Spinner的适配器.</span><br style="line-height:25px"> 它只申明了一个方法:<br style="line-height:25px"><span style="line-height:normal; color:rgb(51,51,51); font-family:arial,sans-serif; font-size:13px"></span> <table id="pubmethods" style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:1em; margin-left:1em; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-size:0.9em; border-collapse:collapse; empty-cells:show; width:933px"><tbody style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial"> <tr style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial"> <th colspan="12" style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:6px; padding-right:12px; padding-bottom:6px; padding-left:12px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-style:initial; border-color:initial; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); text-align:left; vertical-align:top; background-color:rgb(222,232,241)"> Public Methods</th> </tr> <tr style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; background-color:rgb(246,246,246)"> <td style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:6px; padding-right:12px; padding-bottom:6px; padding-left:12px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-style:initial; border-color:initial; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); text-align:right; vertical-align:top; background-color:inherit"> <nobr style="line-height:21px">abstract<a rel="nofollow" href="http://developer.android.com/reference/android/view/View.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">View</a></nobr> </td> <td width="100%" style="line-height:21px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:6px; padding-right:12px; padding-bottom:6px; padding-left:12px; border-top-width:1px; border-right-width:1px; border-bottom-width:1px; border-left-width:1px; border-style:initial; border-color:initial; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-left-style:solid; border-top-color:rgb(204,204,204); border-right-color:rgb(204,204,204); border-bottom-color:rgb(204,204,204); border-left-color:rgb(204,204,204); text-align:left; vertical-align:top; background-color:inherit"> <nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/android/widget/SpinnerAdapter.html#getDropDownView(int,%20android.view.View,%20android.view.ViewGroup)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">getDropDownView</a></span>(int position,<a rel="nofollow" href="http://developer.android.com/reference/android/view/View.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">View</a>convertView,<a rel="nofollow" href="http://developer.android.com/reference/android/view/ViewGroup.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">ViewGroup</a>parent)</nobr><div style="line-height:25px; margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; padding-top:3px; padding-right:1em; padding-bottom:0px; padding-left:1em; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; border-style:initial; border-color:initial"> <p style="line-height:1.3em; margin-top:0px; margin-bottom:1em; padding-top:0px; padding-bottom:0px; border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial"> Get a<code style="line-height:1em; color:rgb(0,112,0); font-family:monospace"><a rel="nofollow" href="http://developer.android.com/reference/android/view/View.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">View</a></code>that displays in the drop down popup the data at the specified position in the data set.</p> </div> </td> </tr> </tbody></table></wbr>参数(<wbr style="line-height:25px">只是定义用于下拉时的显示的接口<wbr style="line-height:25px">)</wbr></wbr>
positionindexoftheitemwhoseviewwewant.
convertViewtheoldviewtoreuse,ifpossible.Note:Youshouldcheckthatthisviewisnon-nullandofanappropriatetypebeforeusing.Ifitisnotpossibletoconvertthisviewtodisplaythecorrectdata,thismethodcancreateanewview.
parenttheparentthatthisviewwilleventuallybeattachedto
Returns
*aViewcorrespondingtothedataatthespecifiedposition.
实现它的类:
BaseAdapter:(implementsListAdapterSpinnerAdapter)
ArrayAdapter<T>
CursorAdapter
ResourceCursorAdapter
SimpleCursorAdapter
SimpleAdapter
实现它的接口:
无