Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS SDK: Two TextViews in one ScrollView?
    text
    copied!<p>Is it possible to put two TextViews in one ScrollView, so that only the ScrollView scrolls and the two embedded TextViews can't scroll independently? (But if the ScrollView scrolls the TextViews should scroll either so that the rest of the text is shown.)</p> <p>Thx. Regards, Daniel</p> <p>Edit:</p> <p>Current code <a href="http://www.muehlbachler.org/spt.zip" rel="nofollow">http://www.muehlbachler.org/spt.zip</a></p> <p>Declaration of what I need and what the app does so far: One part (the just needed one) is a simple port checker which checks a range of ports if they are open or rejected by a host. For that there are two main sections below the form called "open ports" and "closed ports". Under each main section are two textviews where the ports are displayed (either they are open or closed). I made two textviews because it is a better experience if you want to see all open/closed ports because then you must not scroll so often. The problem now is that each textview can scroll independently but that's abit nasty because I just want to scroll the open/closed ports textviews together. In fact, two of the textviews must be grouped together so that they can only scroll together. An example: imagine you have 100 closed ports and they are now displayed divided into two textviews (50 : 50). Now you want to take a quick look at all closed port numbers and (now) you have to scroll two times because you have to scroll textview1 and textview2 separately. Now the wished behaviour comes in: you just want to scroll one time and if you scroll that time you want to see all closed ports (because the two separate textviews are scrolled either). My idea was that I simply put a scrollview before the textviews and then I can scroll them together, but that doesn't work... :(</p> <p>Edit:</p> <p>Image added. I'm not allowed to add immages due to my reputation, so I uploaded it: <a href="http://www.muehlbachler.org/spt.jpg" rel="nofollow">http://www.muehlbachler.org/spt.jpg</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload