We need a table, the size of the type of the periodic table with text and color fill cells. Must be possible:

  • smoothly reduce up to fit the screen;
  • smoothly increase up to a single cell on the entire screen;
  • smoothly move up and down and right-left in the event that it does not fit on the screen entirely;
  • fill each cell color (programmatically);

Tell me the general direction of the most competent solutions to this problem. Where to look? Drawable?

  • ViewGroup - tim_taller
  • Thank. I will sort this out. - lmihael

1 answer 1

It was possible to implement all our plans through onDraw . The whole table is originally scored in the picture . The main thing is to disable hardware acceleration everywhere android:hardwareAccelerated="false" (otherwise it may not work on a real device). Scaling and scrolling implemented through MyScaleGestureListener extends ScaleGestureDetector.SimpleOnScaleGestureListener and MyGestureListener extends GestureDetector.SimpleOnGestureListener .