Android Question Customview With Seekbar

WDK

Member
Licensed User
I have a customview with a seekbar and edittext field. I am trying to take the value of the seekbar and populate the edittext field. It doesn't seem to populate. I ran it through debug and there is a value that is being passed to the sub routine below. But the value is not showing up in the editext field. Any thoughts? If I prepopulate the editext field with a value, it does show up. But never changes even if the seekbar value changes.

Sub ChangeDecimalPlaces_ValueChanged (Value As Int, UserChanged As Boolean)
NumberDecimalPlaces.Text = Value
End Sub
 
Last edited:

WDK

Member
Licensed User
Klaus,

You are correct. Sorry for the lack of information. I actually figured it out while creating a small project that mimic the issue.

I was trying to load the value directly into the edittext field instead of using the logic from the customview
. When I followed instructions, it worked. Just a new user mistake!

Dim index As Int= clv4.GetItemFromView(Sender)
Dim pnl As Panel = clv4.GetPanel(index)
Dim chk As SeekBar = pnl.GetView(2)
Dim chk2 As EditText = pnl.GetView(3)

chk2.text= chk.value
 
Upvote 0
Top