1

When I have TextView example:

TextView tx = (TextView) findViewById(R.id.idOfTextView);

tx.setId( Integer.parseInt(touched) );
tx.setX(X);
tx.setY(Y);
tx.setPadding(12, 12, 12, 12);
tx.setTextSize(25);
tx.setTextColor(Color.parseColor("#EF7620"));
tx.setShadowLayer(16.5f, 0, 0, Color.parseColor("#EF7620"));
tx.setOnTouchListener(new ChoiceTouchListener());

I make some events and manipulation in this tx TextView, but this is not important. Only i want to do is, that I want to scroll or move this TextView somwhere when other event ends.

For example:

enter image description here

The only solution I found is scrollTo, but did not worked for me

tx.scrollTo(100, 100);
Community
  • 1
  • 1
coreprojectz
  • 134
  • 1
  • 3
  • 12
  • 1
    I think it depends on how the TextView is inserted in the "dashboard". I think you should use a RelativeLayout container to get scrollTo() working – Seraphim's Mar 31 '13 at 16:57
  • Thanks for answer. I exactly use RelativeLayout as container of my TextView. The whole bad thing is that when i use scrollTo, happens nothing, no error, no exception, no success... – coreprojectz Mar 31 '13 at 16:59
  • this could help: http://android-er.blogspot.it/2011/09/scroll-view-scrollby-and-scrollto.html (Let me know) – Seraphim's Mar 31 '13 at 17:05

0 Answers0