- Jun 6, 2020
- 11,559
- 4,422
For tooltips (press-and-hold on a view to show some explanatory text), in the past I used a hack in my apps to position a toast message near the view. This has stopped working on certain recent versions of Android (I'll cover that in a separate post), so I went looking for a better solution.
It turns out that Android 8 added a proper way to define tooltips (with Android 8+ currently covering more than 90% of devices).
As far as I know, we can't do this yet in B4A natively (aView.tooltip = "bleem"), so here's a sub that uses JavaObject to call that Java method:
B4X:
It turns out that Android 8 added a proper way to define tooltips (with Android 8+ currently covering more than 90% of devices).
As far as I know, we can't do this yet in B4A natively (aView.tooltip = "bleem"), so here's a sub that uses JavaObject to call that Java method:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید