Lines Matching refs:position
66 public Object getItem(int position) {
72 // Check if position inside this section
73 if (position == 0) {
75 } else if (position < sectionSize) {
76 return section.getItem(position - 1);
80 position -= sectionSize;
82 throw new IllegalStateException("Unknown position " + position);
86 public long getItemId(int position) {
87 return position;
91 public View getView(int position, View convertView, ViewGroup parent) {
97 // Check if position inside this section
98 if (position == 0) {
100 } else if (position < sectionSize) {
101 return section.getView(position - 1, convertView, parent);
105 position -= sectionSize;
107 throw new IllegalStateException("Unknown position " + position);
116 public boolean isEnabled(int position) {
122 // Check if position inside this section
123 if (position == 0) {
125 } else if (position < sectionSize) {
126 return section.isEnabled(position - 1);
130 position -= sectionSize;
132 throw new IllegalStateException("Unknown position " + position);
136 public int getItemViewType(int position) {
143 // Check if position inside this section
144 if (position == 0) {
146 } else if (position < sectionSize) {
147 return type + section.getItemViewType(position - 1);
151 position -= sectionSize;
154 throw new IllegalStateException("Unknown position " + position);