android - Horizontal scroll problem -


I am relatively new to Android. I am working on an application in which I want to display digital signals. But the problem is that once I have captured available screen width how do I add a scrolling feature to continue seeing the signal? Also, I am portraying the signal using the drill (), so what coordination should I do to draw lines when scrolling is enabled? Can anyone give a simple example where a line extends beyond the width of the available screen and you can scroll to see the remaining line in advance.

I have written some of these before in other languages, so I can tell you the principles, instead of an example, I'm assuming that you have some types of buttons left And the user who has a date Allows you to scroll through, and your signal data is stored in an array. Depending on which scaling factor you are using, you will be able to determine how many data can fit in a screen width. Say that your screen can display ten values ​​at a time, then you can store the starting point in your signal array in simple form and use it to display the highest point left to display on your screen. Then show the next ten values ​​in your array of what you have to do. When the user selects the button to move left or right through the data, then simply increasing or decreasing the starting point if you are streaming in your signal, whenever you get new data, the stream starts at the starting point. Can increase. After each start value change will give a redraw scrolling impression. Look for start and end position (i.e. you do not want to scroll until you have at least a full screen of data). What you are doing is creating a window on your data.

Hope this will be helpful.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -