2

I have a class that extends custom view, it has to draw a line and some text like a timeline.
It can be pretty long so I put the view into a scrollview.
It works fine but if the line is too long the view disappears and become invisible (the ScrollView scrolls) and Logcat shows me this message:

07-02 15:56:05.209: W/View(7364): View too large to fit into drawing cache, needs 4392400 bytes, only 4096000 available

How can i solve this problem?
Thanks in advance.

e_ori
  • 775
  • 1
  • 9
  • 28

1 Answers1

1

There's no way to increase RAM, perhaps you can draw less. Remove ScrollView, detect touch on View, draw only visible portion.

S.D.
  • 28,804
  • 3
  • 80
  • 126
  • The problem is that on bottom of the view I have some widgets to show, so I need scrollview – e_ori Jul 02 '13 at 14:22