Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-11 Thread Vincent Tsao
On Mon, May 10, 2010 at 9:59 PM, social hub shubem...@gmail.com wrote: What exactly is your problem here . getting line count 18 when u filled textbox with 18 lines? not a problem but a tricky solution. y, in this solution , i fill 18 empty lines so getLinecount will return me 18 On Sat,

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-10 Thread social hub
What exactly is your problem here . getting line count 18 when u filled textbox with 18 lines? On Sat, May 8, 2010 at 12:53 AM, Vincent Tsao caojunvinc...@gmail.comwrote: @Soical Hub: thanks for your help, your suggestion inspired me a lot i finally find this way to get padding:

[android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
any help? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread social hub
I believe you should include the height of your title bar and status bar as well. If you account for one of them i guess it will look right On Fri, May 7, 2010 at 6:54 AM, Vincent Tsao caojunvinc...@gmail.comwrote: any help? -- You received this message because you are subscribed to the

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
On Fri, May 7, 2010 at 9:45 PM, social hub shubem...@gmail.com wrote: I believe you should include the height of your title bar and status bar as well. If you account for one of them i guess it will look right hi, thanks for your reply. so getMeasuredHeight() return me the whole view height,

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
It remind me of considering some margin space, so i change my code as below: protected void onDraw(Canvas canvas) { canvas.drawColor(paperColor); int count = getLineCount(); int height = this.getMeasuredHeight(); int line_height = this.getLineHeight(); int

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread social hub
u can try getTop getPaddingTop as well Margins getLayoutParams and from there getting margins leftmargin you can google to find more info. With those info you can properly identify what the initial adjustment will be it can be like start from paddingtop hope it helps On Fri, May 7, 2010 at

Re: [android-developers] Re: [Help] how to draw multiple lines in Edittext?

2010-05-07 Thread Vincent Tsao
@Soical Hub: thanks for your help, your suggestion inspired me a lot i finally find this way to get padding: *getCompoundPaddingTop()*, and it works fine now what' more, i find another tricky way to meet my requirement: *Step 1: fill in the EditText with 18 'empty' line rows*