Lines Matching refs:position

145     protected void onListItemClick(ListView l, View v, int position, long id) {
146 if (position == (l.getCount() - 1)) {
149 openSlide(position);
230 int position = mList.getSelectedItemPosition();
231 if ((position >= 0) && (position != (mList.getCount() - 1))) {
233 if (position > 0) {
237 if (position < (mSlideListAdapter.getCount() - 1)) {
258 int position = mList.getSelectedItemPosition();
262 if ((position > 0) && (position < mSlideshowModel.size())) {
263 mSlideshowEditor.moveSlideUp(position);
265 mList.setSelection(position - 1);
269 if ((position >= 0) && (position < mSlideshowModel.size() - 1)) {
270 mSlideshowEditor.moveSlideDown(position);
272 mList.setSelection(position + 1);
276 if ((position >= 0) && (position < mSlideshowModel.size())) {
277 mSlideshowEditor.removeSlide(position);
372 public View getView(int position, View convertView, ViewGroup parent) {
373 return createViewFromResource(position, convertView, mResource);
376 private View createViewFromResource(int position, View convertView, int resource) {
384 text.setText(mContext.getString(R.string.slide_number, position + 1));
386 SlideModel slide = getItem(position);
394 ((SlideshowPresenter) presenter).setLocation(position);
418 int position = info.position;
420 if ((position >= 0) && (position != (mList.getCount() - 1))) {
422 if (position > 0) {
425 if (position < (mSlideListAdapter.getCount() - 1)) {
441 int position = info.position;
445 if ((position > 0) && (position < mSlideshowModel.size())) {
446 mSlideshowEditor.moveSlideUp(position);
448 mList.setSelection(position - 1);
452 if ((position >= 0) && (position < mSlideshowModel.size() - 1)) {
453 mSlideshowEditor.moveSlideDown(position);
455 mList.setSelection(position + 1);
459 if ((position >= 0) && (position < mSlideshowModel.size())) {
460 mSlideshowEditor.removeSlide(position);