Lines Matching refs:position
59 * Maps a position into this adapter -> {@link Preference}. These
200 public Preference getItem(int position) {
201 if (position < 0 || position >= getCount()) return null;
202 return mPreferenceList.get(position);
205 public long getItemId(int position) {
206 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID;
207 return this.getItem(position).getId();
210 public View getView(int position, View convertView, ViewGroup parent) {
211 final Preference preference = this.getItem(position);
225 public boolean isEnabled(int position) {
226 if (position < 0 || position >= getCount()) return true;
227 return this.getItem(position).isSelectable();
252 public int getItemViewType(int position) {
257 final Preference preference = this.getItem(position);