I have several iconbuttons and mist find the one with a certain tag. But when I want to work with it, I get
"java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams com.phillipcalvin.iconbutton.IconButton.getLayoutParams()' on a null object reference"
Why?
Code:
Dim clickedbtn as IconButton
For Each v As View In Activity.GetAllViewsRecursive
Try
' only check iconbuttons
If v Is IconButton Then
t=v.Tag
Log...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/1r2dzk2
via IFTTT
Aucun commentaire:
Enregistrer un commentaire