public override void OnListItemClick(ListView l, View v, int position, long id) { // We can display everything in place with fragments. // Have the list highlight this item and show the data. ListView.SetItemChecked(position, true); // vpager.SetOnPageChangeListener(new PagerListener()); vpager.SetCurrentItem(1, true); }
private void OnTabSelected(int position) { _viewPager.SetCurrentItem(position, false); for (var i = 0; i < _tabLayout.TabCount - 1; i++) { var tab = _tabLayout.GetTabAt(i); tab?.SetIcon(i == position ? ContextCompat.GetDrawable(this, _adapter.TabIconsActive[i]) : ContextCompat.GetDrawable(this, _adapter.TabIconsInactive[i])); } SetProfileChart(_tabLayout.LayoutParameters.Height); TryUpdateProfile(); }