Get Value of a layout view assigned to a scroll view

rakeshrnishere

Member
Licensed User
Longtime User
I have a ScrollView in my main activity where I load a layout which I designed using designer.

The layout contains 1 textbox, button and label.

1) How do I get the value in the textbox via my scrollview in my main activity?
2) How do I program the button click from my main activity (which resides in my layout) via my scrollview?
 

rakeshrnishere

Member
Licensed User
Longtime User
Excellent thanks klaus...
I feel like a fool now :)

For some reason it was not working on my application, I think it could be because I had the same button name in my main activity and the layout that I loaded....
 
Upvote 0

rakeshrnishere

Member
Licensed User
Longtime User
klaus, sorry, 1 more question...

I have a checkbox in the layout that i loaded in my scrollview.
How do I check mark it automatically from main activity i.e. via activity_create?

I tried the following code...

On Globals Sub
Dim Chk1 as CheckBox
Dim scrollview1 as ScrollView

On Activity Create
scrollview1.panel.loadlayout("l2")
chk1.checked = true 'But this statement doesn't seem to work :(
 
Upvote 0

rakeshrnishere

Member
Licensed User
Longtime User
:sign0161:
Again this is embarrassing...

Its working now... previously the debugger got stuck in checkbox1.checked line for some reason or the other...

i gotta kill myself :BangHead:
 
Upvote 0
Top