public getTypeface ( ) : global::android.graphics.Typeface | ||
return | global::android.graphics.Typeface |
public CardboardOverlayEyeView(Context context, AttributeSet attrs) : base(context, attrs) { imageView = new ImageView(context, attrs); imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE); imageView.setAdjustViewBounds(true); // Preserve aspect ratio. addView(imageView); textView = new TextView(context, attrs); textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 14.0f); textView.setTypeface(textView.getTypeface(), Typeface.BOLD); textView.setGravity(Gravity.CENTER); textView.setShadowLayer(3.0f, 0.0f, 0.0f, Color.DKGRAY); addView(textView); }