Infinite diagram with scale function
up vote
0
down vote
favorite
I'm trying to implement a RecyclerView
like diagram, which is
-infinite
-can scale along x and y, with respect to the center
-paginated, including EdgeEffect if no data
I have two options now:
Use RecyclerView and add portions of graph on it.
This leads me to an issue, that scaling along X axis is hard.
You need to scale the view, and then scroll the recyclerView back, so view would be centered
Another option is to prepare all the data and then draw only visible part on a canvas. But here I'm unable to precisely determinate the end of the each page (because there is no pages)
maybe you guys have some ideas
android
add a comment |
up vote
0
down vote
favorite
I'm trying to implement a RecyclerView
like diagram, which is
-infinite
-can scale along x and y, with respect to the center
-paginated, including EdgeEffect if no data
I have two options now:
Use RecyclerView and add portions of graph on it.
This leads me to an issue, that scaling along X axis is hard.
You need to scale the view, and then scroll the recyclerView back, so view would be centered
Another option is to prepare all the data and then draw only visible part on a canvas. But here I'm unable to precisely determinate the end of the each page (because there is no pages)
maybe you guys have some ideas
android
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to implement a RecyclerView
like diagram, which is
-infinite
-can scale along x and y, with respect to the center
-paginated, including EdgeEffect if no data
I have two options now:
Use RecyclerView and add portions of graph on it.
This leads me to an issue, that scaling along X axis is hard.
You need to scale the view, and then scroll the recyclerView back, so view would be centered
Another option is to prepare all the data and then draw only visible part on a canvas. But here I'm unable to precisely determinate the end of the each page (because there is no pages)
maybe you guys have some ideas
android
I'm trying to implement a RecyclerView
like diagram, which is
-infinite
-can scale along x and y, with respect to the center
-paginated, including EdgeEffect if no data
I have two options now:
Use RecyclerView and add portions of graph on it.
This leads me to an issue, that scaling along X axis is hard.
You need to scale the view, and then scroll the recyclerView back, so view would be centered
Another option is to prepare all the data and then draw only visible part on a canvas. But here I'm unable to precisely determinate the end of the each page (because there is no pages)
maybe you guys have some ideas
android
android
asked Nov 8 at 14:17
alexey polusov
1,20511124
1,20511124
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53209609%2finfinite-diagram-with-scale-function%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password