Re: [android-developers] edittext cursor

2011-07-12 Thread Justin Anderson
Um what? This example is at runtime... You edit text cursor can be anywhere from 0 to the length of the current text. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Jul 1, 2011 at 4:48 AM, vani reddy wrote: > > Hi, > How to set edittext cursor to

[android-developers] edittext cursor

2011-07-04 Thread vani reddy
Hi, How to set edittext cursor to a particular position in android. I referred http://thedevelopersinfo.com/2009/11/15/put-cursor-at-specific-position-in-edittext-component-in-android/ but this is when d text is already defined. i want at runtime?? -- Regards, Vani -- You received this messag

Re: [android-developers] Edittext Cursor and Highlight Problem

2010-09-13 Thread TreKing
On Wed, Sep 1, 2010 at 9:56 AM, SurtaX wrote: > I am trying to implement a textview which has select text/copy and paste > functionality. > Why? I just tried playing an EditText I use in my app that's basically as default as can get and I can select text, copy, and paste without any blinking cur

[android-developers] Edittext Cursor and Highlight Problem

2010-09-01 Thread SurtaX
I am trying to implement a textview which has select text/copy and paste functionality. I tried to do this by making an Edittext with the following properties. I currently have the following Edittext: I want users to be able to highlight the text with long click --> select text. This works fine

[android-developers] EditText cursor position in px/dip

2009-07-15 Thread vivek
We are trying to position a widget at the cursor position on the edit widget. It seems this is only exposed in character position, not pixels. This has been the work-around that we've comeup with - to paint the text and compute the rectangle extents. This seems a tad inefficient - but we couldn'

[android-developers] EditText cursor position in pixels/dip

2009-07-14 Thread sr
I'd like to position a widget at the cursor position of an EditText widget. This will be a widget on top of the cursor - to move as text is entered into the EditText widget. Currently, I'd using a TextChangedListener and rendering the text locally to figure the pixel position. Painting the text