Alerter Library

1586082506830.png
 
If you set it to False, user will not be able to dismiss dialog by touching on it.
 
Thanks.

I have added Alerter1.Dismissable(True) and Alerter1.Dismissable(False) to the btnShowAlertWithIcon_Click and to btnShowAlertWithOneButton_Click and it makes no difference. In all cases tapping on the alert closes it
 
but if i change dismissable to true in that example it makes no difference. the alert still doesn't dismiss when tapped
 
You can use:
B4X:
Sub Alerter1_Click
    Alerter1.Close
End Sub
Indeed dismissable(False) or True does not change behavior.
 
Ok, thanks. I am glad I am not going mad :)

one final question. is it possible to get the index of the button rather than the text?
 
hi..
android 13
I get this error..
is there a solution for this..
android.view.InflateException: Binary XML file line #49 in xx:layout/alerter_alert_default_layout: Binary XML file line #49 in xx:layout/alerter_alert_default_layout: Error inflating class androidx.appcompat.widget.AppCompatTextView

#AdditionalJar: androidx.appcompat:appcompat
 
How to Use v1.02 with android:targetSdkVersion="31" ?
Because v1.10 hide my title bar, i want to keep title bar, could you please help me
 
Last edited:
How to Use v1.02 with android:targetSdkVersion="31" ?
Because v1.10 hide my title bar, i want to keep title bar, could you please help me

Remove this from manifest:
B4X:
SetApplicationAttribute(android:theme, "@style/Theme.AppCompat")

Add this:
B4X:
SetApplicationAttribute(android:theme, "@style/myTheme")
CreateResource(values-v21, theme.xml,
<resources>
  <style name="myTheme" parent="@style/Theme.AppCompat">
        <item name="android:windowNoTitle">false</item>
        <item name="android:windowActionBar">true</item>
    </style>
</resources>)

Another example with title bar attached to post #1
 
Last edited:
hi ,
i got this error

Error in D:\Android\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.7.22-63817667628000\dex_v1\kotlin-stdlib-1.7.22.zip:classes.dex:
Type kotlin.ArrayIntrinsicsKt is defined multiple times: D:\Android\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.7.22-63817667628000\dex_v1\kotlin-stdlib-1.7.22.zip:classes.dex, D:\Android\tools\..\extras\b4a_local\unpacked-kotlin-stdlib-1.6.10-63810050730000\dex_v1\kotlin-stdlib-1.6.10.zip:classes.dex
Compilation failed

any solution please?
 
Back
Top