I have implemented a ScrollView with a series of textedit's and labels, along with a button. I wish to draw a line in reference to one of the edit boxes (we will call this edit box hkText). I wish the line to separate the hk edit box from the edit box above it. I use the following code in Activity_Create to no avail:
ScrollView1.Initialize(700dip)
Activity.AddView(ScrollView1, 0, 0, 100%x, 100%y)
ScrollView1.Panel.LoadLayout("Main")
seperator.Initialize(ScrollView1.Panel)
y1 = (hkText.Top - 30)
y2 = (hkText.Top - 30)
seperator.DrawLine(0, y1, 100%x, y2, Colors.White, 10dip)
It always gives me an error message saying the width and height must be greater than 0. If I use Activity as the seperator.Initialize target, I see nothing.
Also, I wish it to be quite a thin line, but I wanted to make sure I could see it during tests.
Also, I wish the line to be relative to my edit box in both horizontal and vertical orientations with the two different resolutions. How do I accomplish this?
Thanks in advance.
ScrollView1.Initialize(700dip)
Activity.AddView(ScrollView1, 0, 0, 100%x, 100%y)
ScrollView1.Panel.LoadLayout("Main")
seperator.Initialize(ScrollView1.Panel)
y1 = (hkText.Top - 30)
y2 = (hkText.Top - 30)
seperator.DrawLine(0, y1, 100%x, y2, Colors.White, 10dip)
It always gives me an error message saying the width and height must be greater than 0. If I use Activity as the seperator.Initialize target, I see nothing.
Also, I wish it to be quite a thin line, but I wanted to make sure I could see it during tests.
Also, I wish the line to be relative to my edit box in both horizontal and vertical orientations with the two different resolutions. How do I accomplish this?
Thanks in advance.