All data disappears from graph when rightmost rendered data goes off screen - android

At the moment it is happening in combined chart, after I zoom into the chart and start moving to left side, as soon as the rightmost rendered shape(scatter, bar, line, whichever) goes off chart screen all other rendered shapes in current chart go invisible. Anyone know what might be the problem?

Related

Android Slider causing small arrows to appear at the top corner of the screen

I have an android app with a settings page that is using sliders to set a dim screen timer as well as screen brightness. Everything is functioning correctly, but when I am using either one of the sliders, a small triangle appears at the top left corner of the screen and moves left and right mimicking the movement of my slider. When I take my finger off the slider, the triangle disappears. I also can notice that for the first fraction of a second that I start using the slider, the triangle will have the number value of the slider next to it. Attached is a snapshot of what my screen looks like.screenshot of the triangle

Moving, clickable, rectangle animation

I've searched and searched, but couldn't find what I was looking for...
There are many ways to animate in android and being a newbie I do not know which solution to choose for my app.
Here's what I want to do:
It's an animation of rectangles moving slowly (takes ~10 min to cross the screen) from top to bottom through the screen.
Each and every one of the rectangles is clickable, through some listener, and does something.
Two or three buttons at the bottom of the screen (which I already created as floating action buttons) do not move and float "on top", i.e. the moving rectangles pass underneath them as they move down the screen.
The animation can be stopped and then resumes by the action buttons mentioned above.
Newly appearing rectangles appear on top as they " emerge" slowly from the top of the screen, i.e. when part of them is still outside, as they reveal themself by moving down.
I want this to be simple and robust.
How should I implement this, and please explain why...
As a loop?
A separate thread? Of so how?
I would like to understand the rationale behind every approach...
Thanks,
Julius

OpenGL: Take screenshot of screen and transform (shrink) it, then draw that on a portion of the screen

I want to use OpenGL for Android to take the screen (make "continuous" screenshots), make it smaller vertically, then paint it back to leave a black bar at the bottom of the display.
Basically:
Read pixels
Transform (shrink the screen vertically)
Paint back the shrunk screenshot on the display.
Repeat 1.-3. continuously.
How can I do this? The bottom line is that I want to have space for some other stuff at the bottom of the screen while still not missing something underneath what I want to display (think the soft home buttons in Android).
This sounds insanely expensive. I'd really try just to render it at the correct size in the first place.
Use glScissor to limit the region of the screen to stop drawing outside of that, and glViewport to correct the transform behaviour.

Moving GridView with finger

I need a solution for the following problem :
i have a screen with vertical half portion having Linear Layout with content and lower half portion is having Grid View of Images(Tiled Area).
When finger makes contact with the tiled area and starts swiping upward, the tiled area moves upward at the same pace as the finger is moving - showing more picture below, while slowly covering white section above. After it cover the whole screen, the user can go scroll up and down swipes.
the opposite also applies: if the entire screen is covered with the tiles, and the top of the tile is already at the top of the screen, then further downward swipes will result in the opposite effect, ultimately shrinking(at the same pace as the finger is moving) the tiled area to its original size.
NOTE : view will move at the same pace as the finger moves. i think it will be done by gesture detector

Animation around Itemized Overlay

I am developing an application which makes use of google map. I have some overlays added to show location of certain places. These overlay items can tap to get more information. I followed the link How to show a balloon above a marker in a MapActivity? Isn't there a widget? to achieve. Besides, I need to show some animation around the overlay item to show that it is being selected.
I have one idea which is to draw some circles(just stroke, without fill) simultaneously one after another. Start from small circle with thicker stroke to big circle with thinner stroke. When the second circle is drawn, the first circle should disappear. It would be like circle gradually growing (ripple effect) . Of course, it would disappear and start the process over again.
I am having trouble with drawing circles on the mapview. Is it just another overlay or something else? I would be grateful if anyone could show me similar thread or recommendation. Any suggestion are welcome too.

Categories

Resources