本文整理汇总了C#中Android.Widget.TextView.SetShadowLayer方法的典型用法代码示例。如果您正苦于以下问题:C# TextView.SetShadowLayer方法的具体用法?C# TextView.SetShadowLayer怎么用?C# TextView.SetShadowLayer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.Widget.TextView
的用法示例。
在下文中一共展示了TextView.SetShadowLayer方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CardboardOverlayEyeView
public CardboardOverlayEyeView(Context context)
: base(context)
{
imageView = new ImageView(context);
imageView.SetScaleType (ImageView.ScaleType.CenterInside);
imageView.SetAdjustViewBounds (true); // Preserve aspect ratio.
AddView(imageView);
textView = new TextView(context);
textView.SetTextSize (ComplexUnitType.Dip, 14f);
textView.SetTypeface (textView.Typeface, TypefaceStyle.Bold);
textView.Gravity = GravityFlags.Center;
textView.SetShadowLayer(3.0f, 0.0f, 0.0f, Color.DarkGray);
AddView(textView);
}
示例2: ini
//.........这里部分代码省略.........
_linearAuthor.LayoutParameters = new LinearLayout.LayoutParams (-1, -2);
_linearAuthor.SetGravity (Android.Views.GravityFlags.Center);
_linearAuthor.AddView (_txtAuthor_S1);
_linearAuthor.SetY (Configuration.getHeight (378));
_mainLayout.AddView (_linearAuthor);
//_txtAuthor_S1.SetX (Configuration.getWidth (228));_txtAuthor_S1.SetY (Configuration.getHeight (378));
LinearLayout _linearChapter = new LinearLayout (context);
_linearChapter.LayoutParameters = new LinearLayout.LayoutParams (-1, -2);
_linearChapter.SetGravity (Android.Views.GravityFlags.Center);
_linearChapter.AddView (_txtChapter_S1);
_linearChapter.SetY (Configuration.getHeight (502));
_mainLayout.AddView (_linearChapter);
//_txtChapter_S1.SetX (Configuration.getWidth (191));_txtChapter_S1.SetY (Configuration.getHeight (502));
_txtTitle_S1.Text = "Camino Inca";
_txtTitle_S1.SetTextColor (Color.White);
_txtTitle_S1.Typeface = Typeface.CreateFromAsset(context.Assets, "fonts/HelveticaNeue.ttf");
_txtTitle_S1.SetTextSize (textFormat,Configuration.getHeight(30));
_txtAuthor_S1.Text = "David Spencer";
_txtAuthor_S1.SetTextColor (Color.White);
_txtAuthor_S1.Typeface = Typeface.CreateFromAsset(context.Assets, "fonts/HelveticaNeue.ttf");
_txtAuthor_S1.SetTextSize (textFormat,Configuration.getHeight(30));
//_txtAuthor_S1.SetBackgroundColor (Color.ParseColor ("#60000000"));
_txtAuthor_S1.SetShadowLayer (50.8f, 0.0f, 0.0f, Color.ParseColor ("#000000"));
_txtChapter_S1.Text = "FLORA Y FAUNA";
_txtChapter_S1.SetTextColor (Color.White);
_txtChapter_S1.Typeface = Typeface.CreateFromAsset(context.Assets, "fonts/HelveticaNeue.ttf");
_txtChapter_S1.SetTextSize (textFormat,Configuration.getHeight(35));
List<string> item_path = new List<string> ();
item_path.Add ("icons/icona.png");
item_path.Add ("icons/iconb.png");
item_path.Add ("icons/iconc.png");
item_path.Add ("icons/icond.png");
item_path.Add ("icons/icone.png");
item_path.Add ("icons/iconf.png");
item_path.Add ("icons/icong.png");
int inixItemIM = Configuration.getWidth (33);
int crecIM = Configuration.getWidth (90);
int inixItemTXT = Configuration.getWidth (42);
int crecTXT = Configuration.getWidth (90);
int inixLinea = Configuration.getWidth (93);
for (int i = 0; i < item_path.Count; i++) {
_imItem_S1.Add(new ImageView(context));
_imItem_S1[i].SetImageBitmap(Bitmap.CreateScaledBitmap (getBitmapFromAsset(item_path[i]), Configuration.getWidth (30), Configuration.getWidth (30), true));
_mainLayout.AddView (_imItem_S1 [i]);
_imItem_S1 [i].SetX (inixItemIM+(i*crecIM));_imItem_S1 [i].SetY (Configuration.getHeight(602));
示例3: ini
//.........这里部分代码省略.........
_linearAuthor.LayoutParameters = new LinearLayout.LayoutParams (-1, -2);
_linearAuthor.SetGravity (Android.Views.GravityFlags.Center);
_linearAuthor.AddView (_txtAuthor_S1);
_linearAuthor.SetY (Configuration.getHeight (378));
//_mainLayout.AddView (_linearAuthor);
//_txtAuthor_S1.SetX (Configuration.getWidth (228));_txtAuthor_S1.SetY (Configuration.getHeight (378));
LinearLayout _linearChapter = new LinearLayout (context);
_linearChapter.LayoutParameters = new LinearLayout.LayoutParams (-1, -2);
_linearChapter.SetGravity (Android.Views.GravityFlags.Center);
//_linearChapter.AddView (_txtChapter_S1);
_linearChapter.SetY (Configuration.getHeight (502));
//_mainLayout.AddView (_linearChapter);
//_txtChapter_S1.SetX (Configuration.getWidth (191));_txtChapter_S1.SetY (Configuration.getHeight (502));
_txtTitle_S1.Text = "Camino Inca";
_txtTitle_S1.SetTextColor (Color.White);
_txtTitle_S1.Typeface = Typeface.CreateFromAsset(context.Assets, "fonts/HelveticaNeue.ttf");
_txtTitle_S1.SetTextSize (textFormat,Configuration.getHeight(30));
_txtAuthor_S1.Text = "David Spencer";
_txtAuthor_S1.SetTextColor (Color.White);
_txtAuthor_S1.Typeface = Typeface.CreateFromAsset(context.Assets, "fonts/HelveticaNeue.ttf");
_txtAuthor_S1.SetTextSize (textFormat,Configuration.getHeight(30));
//_txtAuthor_S1.SetBackgroundColor (Color.ParseColor ("#60000000"));
_txtAuthor_S1.SetShadowLayer (50.8f, 0.0f, 0.0f, Color.ParseColor ("#000000"));
_txtChapter_S1.Text = "FLORA Y FAUNA";
_txtChapter_S1.SetTextColor (Color.White);
_txtChapter_S1.Typeface = Typeface.CreateFromAsset(context.Assets, "fonts/HelveticaNeue.ttf");
_txtChapter_S1.SetTextSize (textFormat,Configuration.getHeight(35));
List<string> item_path = new List<string> ();
item_path.Add ("icons/icona.png");
item_path.Add ("icons/iconb.png");
item_path.Add ("icons/iconc.png");
item_path.Add ("icons/icond.png");
item_path.Add ("icons/icone.png");
item_path.Add ("icons/iconf.png");
item_path.Add ("icons/icong.png");
int inixItemIM = Configuration.getWidth (33);
int crecIM = Configuration.getWidth (90);
int inixItemTXT = Configuration.getWidth (42);
int crecTXT = Configuration.getWidth (90);
int inixLinea = Configuration.getWidth (93);
for (int i = 0; i < item_path.Count; i++) {
_imItem_S1.Add(new ImageView(context));
//_imItem_S1[i].SetImageBitmap(Bitmap.CreateScaledBitmap (getBitmapFromAsset(item_path[i]), Configuration.getWidth (30), Configuration.getWidth (30), true));
//_mainLayout.AddView (_imItem_S1 [i]);
_imItem_S1 [i].SetX (inixItemIM+(i*crecIM));_imItem_S1 [i].SetY (Configuration.getHeight(602));
示例4: CardboardOverlayEyeView
public CardboardOverlayEyeView (Context context) : base (context)
{
textView = new TextView(context);
textView.SetTextSize (ComplexUnitType.Dip, 14f);
textView.SetTypeface (textView.Typeface, TypefaceStyle.Bold);
textView.Gravity = GravityFlags.Center;
textView.SetShadowLayer(3.0f, 0.0f, 0.0f, Color.DarkGray);
AddView(textView);
temperaturePaint = new Paint {
Color = Color.Transparent,
AntiAlias = true,
};
SetWillNotDraw (false);
}