On Mon, May 10, 2010 at 9:59 PM, social hub 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, May 8, 2010 at
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 wrote:
> @Soical Hub: thanks for your help, your suggestion inspired me a lot
>
> i finally find this way to get padding: *getCompoundPaddingTop()*, and it
@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*
StringB
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 9
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
On Fri, May 7, 2010 at 9:45 PM, social hub 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, which means
get
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 wrote:
> any help?
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "An
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 opt
8 matches
Mail list logo