Esempio n. 1
0
        protected override void DispatchDraw(Android.Graphics.Canvas canvas)
        {
            base.DispatchDraw(canvas);

            if (Header == null && Divider != null)
            {
                //Drawable.setbounds does not work on pre honeycomb, so you have to do a little work around
                //for anything pre-HC.
                if ((int)Build.VERSION.SdkInt < 11)
                {
                    canvas.ClipRect(0, 0, Width, DividerHeight);
                }
                Divider.Draw(canvas);
            }
        }
Esempio n. 2
0
 public static void DrawIconTitle(Styles.StyleName iconStyleName, string mainTitle, string subTitle, ColorName colorName)
 {
     GUILayout.BeginHorizontal();
     {
         Icon.Draw(Styles.GetStyle(iconStyleName), Bar.Height(Size.XL), Bar.Height(Size.XL), colorName);
         GUILayout.Space(Properties.Space(4));
         GUILayout.BeginVertical(GUILayout.Height(Bar.Height(Size.XL)));
         {
             GUILayout.Space(-Properties.Space(2));
             Label.Draw(mainTitle, Size.XL, colorName, Bar.Height(Size.M));
             GUILayout.Space(Properties.Space());
             Divider.Draw(Divider.Type.One, colorName);
             GUI.color = GUI.color.WithAlpha(0.8f);
             Label.Draw(subTitle, Size.S, colorName, Bar.Height(Size.M));
             GUI.color = GUI.color.WithAlpha(1f);
         }
         GUILayout.EndVertical();
     }
     GUILayout.EndHorizontal();
 }