Esempio n. 1
0
        private static bool CanAdapterViewScroll(AdapterView lv)
        {
            if (lv.LastVisiblePosition == -1)
            {
                return(false);
            }
            bool firstItemVisible = lv.FirstVisiblePosition == 0;
            bool lastItemVisible  = lv.LastVisiblePosition == lv.Count - 1;

            if (firstItemVisible && lastItemVisible && lv.ChildCount > 0)
            {
                if (lv.GetChildAt(0).Top < lv.PaddingTop)
                {
                    return(true);
                }

                return(lv.GetChildAt(lv.ChildCount - 1).Bottom >
                       lv.Height - lv.PaddingBottom);
            }
            return(true);
        }
Esempio n. 2
0
 public void OnItemSelected(AdapterView parent, View view, int position, long id)
 {
     ((TextView)parent.GetChildAt(0)).SetTextColor(Color.White);
 }