开发者

ANDROID user created text box?

I am looking to create an application that allows the user of the app the ability to create their own text box. It would be on top of an image file that I currently load. Basically they would zoom in to a place on the image, then drag with their 开发者_开发技巧fingers the position of the needed text box, then the box would be able to accept text...

I cannot find anywhere how I would accomplish this task ??? any suggestions or help would be much appreciated!!!

thank you!!


I am assuming based on

"then the box would be able to accept text..."

that you mean the user will be able to type things in to it.

If that is correct then an EditText is what you are looking for. By default this View is not set up to let the user

"drag with their fingers the position of the needed text box"

In order to make that work you'd have to write your own OnTouchListener for this view that recognizes the finger motions and changes the size of the EditText accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜