public virtual void onItemSelected(object parent, android.view.View view, int position , long id) { [email protected] tabView = ([email protected] .TabView)view; tabView.getTab().select(); }
public virtual void onClick(android.view.View view) { [email protected] tabView = ([email protected] .TabView)view; tabView.getTab().select(); int tabCount = this._enclosing.mTabLayout.getChildCount(); { for (int i = 0; i < tabCount; i++) { android.view.View child = this._enclosing.mTabLayout.getChildAt(i); child.setSelected(child == view); } } }
public virtual void addTab(android.app.ActionBar.Tab tab, bool setSelected_1) { [email protected] tabView = createTabView (tab, false); mTabLayout.addView(tabView, new android.widget.LinearLayout.LayoutParams(0, android.view.ViewGroup .LayoutParams.MATCH_PARENT, 1)); if (mTabSpinner != null) { (([email protected])mTabSpinner.getAdapter ()).notifyDataSetChanged(); } if (setSelected_1) { tabView.setSelected(true); } if (mAllowCollapse) { requestLayout(); } }
private [email protected] createTabView( android.app.ActionBar.Tab tab, bool forAdapter) { [email protected] tabView = new [email protected] .TabView(this, getContext(), tab, forAdapter); if (forAdapter) { tabView.setBackgroundDrawable(null); tabView.setLayoutParams(new android.widget.AbsListView.LayoutParams(android.view.ViewGroup .LayoutParams.MATCH_PARENT, mContentHeight)); } else { tabView.setFocusable(true); if (mTabClickListener == null) { mTabClickListener = new android.widget.@internal.ScrollingTabContainerView.TabClickListener (this); } tabView.setOnClickListener(mTabClickListener); } return(tabView); }
private [email protected] createTabView( android.app.ActionBar.Tab tab, bool forAdapter) { [email protected] tabView = new [email protected] .TabView(this, getContext(), tab, forAdapter); if (forAdapter) { tabView.setBackgroundDrawable(null); tabView.setLayoutParams(new android.widget.AbsListView.LayoutParams(android.view.ViewGroup .LayoutParams.MATCH_PARENT, mContentHeight)); } else { tabView.setFocusable(true); if (mTabClickListener == null) { mTabClickListener = new android.widget.@internal.ScrollingTabContainerView.TabClickListener (this); } tabView.setOnClickListener(mTabClickListener); } return tabView; }