假设这段代码 #272727a6 是一种几乎是黑色的颜色,透明度为 30%,但在 Android 中它看起来是蓝色的,而在 CSS 代码或 Web 中,颜色如果是透明的黑色,我做错了什么?或者在 Android 中,十六进制代码的工作方式不同?
Android.Hardware.Camera camara;
ISurfaceHolder camaraHolder;
SurfaceView camaraPre;
RelativeLayout contenedorBtnCaptura;
ImageButton btnCamara;
ProgressDialog progressDialog;
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
SetContentView(Resource.Layout.Camara);
contenedorBtnCaptura = FindViewById<RelativeLayout>(Resource.Id.contenedorBtnCaptura);
contenedorBtnCaptura.SetBackgroundColor(Color.ParseColor("#272727a6"));
btnCamara = FindViewById<ImageButton>(Resource.Id.btnCamara);
btnCamara.SetImageResource(Resource.Mipmap.btnCapturar);
btnCamara.SetOnTouchListener(this);
btnCamara.Click += delegate
{
ProcesarCaptura();
};
camaraPre = FindViewById<SurfaceView>(Resource.Id.surfaceCamara);
camaraHolder = camaraPre.Holder;
camaraHolder.AddCallback(this);
camaraHolder.SetType(SurfaceType.PushBuffers);
}
慕姐8265434
相关分类