user220201
user220201

Reputation: 4534

Scrolling text display in Android

Android newbie here. I know I can use TextView for scrolling text display but my question is a little different.

I want to show step by step details of moves in a game in a box on a View. It should be something similar to the scrolling text you see on most poker games. The requirements are you should be able to scroll through it to see the entire game moves. I am drawing the entire View using draw() and so was wondering how to get TextView on there. Can I add it to the View and position it myself in code? From what I see it seems like I should add TextView through the XML for the Activity. Is there another way around it or may be is there another widget I can use to solve my problem?

Thanks,

P

Upvotes: 1

Views: 463

Answers (1)

slund
slund

Reputation: 6397

You could try using a FrameLayout and overlay a TextView over your custom drawn view. It may be difficult to position the TextView precisely. Alternately you could extend ViewGroup and manage the view layout however you want.

Upvotes: 1

Related Questions