- Jun 6, 2020
- 11,517
- 4,383
I use
B4X:
The logoView is a panel and the background is set to FILL automatically. This is the result.:
How I can set the BitmapDrawable with gravity = CENTER ?
I try this:
B4X:
but I get this error:
B4X:
Thanks in advance for any tip.
برای دیدن لینک ها باید ثبت نام کنید
to set a image in native ad advanced.B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن تصاویر باید ثبت نام کنید
How I can set the BitmapDrawable with gravity = CENTER ?
I try this:
B4X:
logoView.SetBackgroundImage(image.RunMethod("getDrawable", Null)).Gravity = Gravity.CENTER
but I get this error:
B4X:
java.lang.ClassCastException: android.graphics.drawable.BitmapDrawable cannot be cast to android.graphics.Bitmap
Thanks in advance for any tip.
برای دیدن لینک ها باید ثبت نام کنید