Lines Matching refs:position
172 public void setTabSelected(int position) {
173 mSelectedTabIndex = position;
177 final boolean isSelected = i == position;
180 animateToTab(position);
183 if (mTabSpinner != null && position >= 0) {
184 mTabSpinner.setSelection(position);
247 public void animateToTab(final int position) {
248 final View tabView = mTabLayout.getChildAt(position);
311 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) {
313 mTabLayout.addView(tabView, position, new LinearLayout.LayoutParams(
326 public void updateTab(int position) {
327 ((TabView) mTabLayout.getChildAt(position)).update();
336 public void removeTabAt(int position) {
337 mTabLayout.removeViewAt(position);
357 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
523 public Object getItem(int position) {
524 return ((TabView) mTabLayout.getChildAt(position)).getTab();
528 public long getItemId(int position) {
529 return position;
533 public View getView(int position, View convertView, ViewGroup parent) {
535 convertView = createTabView((ActionBar.Tab) getItem(position), true);
537 ((TabView) convertView).bindTab((ActionBar.Tab) getItem(position));