[android-developers] Re: EditText - maximum width

2010-01-31 Thread android beginner
Hi,

Any suggestion?

Thanks


On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  I made the EditText to accept only 4 characters, but my question was
  different. sorry for not being clear.
 
  When the EditText comes up, by default its very small(equavalent to one
  character length) and on entering characters it re-sizes itself. I do
 not
  want it to resize, but fixed size of 4 characters.
 
  Thanks
 
 
 
  On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   It helps reading the documentation, but here's your answer:
 
  addFilter(view, new InputFilter.LengthFilter(maxLength));
 
   On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
I need to have an EditText with maximum width for 4 characters. I
 do not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.
 
Can anyone suggest me how to do this?
 
Thanks
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en





 --
 Thanks  Regards
 Sasikumar.S


-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: EditText - maximum width

2010-01-28 Thread Zsolt Vasvari
It helps reading the documentation, but here's your answer:

addFilter(view, new InputFilter.LengthFilter(maxLength));


On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
wrote:
 Hi,

 I need to have an EditText with maximum width for 4 characters. I do not
 want set maximum width in pixels as I have my target with couple of
 different screen resolutions.

 Can anyone suggest me how to do this?

 Thanks

-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: EditText - maximum width

2010-01-28 Thread android beginner
Hi,

I made the EditText to accept only 4 characters, but my question was
different. sorry for not being clear.

When the EditText comes up, by default its very small(equavalent to one
character length) and on entering characters it re-sizes itself. I do not
want it to resize, but fixed size of 4 characters.

Thanks

On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com wrote:

 It helps reading the documentation, but here's your answer:

addFilter(view, new InputFilter.LengthFilter(maxLength));


 On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
 wrote:
   Hi,
 
  I need to have an EditText with maximum width for 4 characters. I do not
  want set maximum width in pixels as I have my target with couple of
  different screen resolutions.
 
  Can anyone suggest me how to do this?
 
  Thanks

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: EditText - maximum width

2010-01-28 Thread Sasikumar S
Hi android beginner,

you can set your edittext box width as 65PX. So that it will looks
like four character supporting box.
After you are entering text also it won't decrease or increase.

On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
wrote:
 Hi,

 I made the EditText to accept only 4 characters, but my question was
 different. sorry for not being clear.

 When the EditText comes up, by default its very small(equavalent to one
 character length) and on entering characters it re-sizes itself. I do not
 want it to resize, but fixed size of 4 characters.

 Thanks



 On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
  It helps reading the documentation, but here's your answer:

         addFilter(view, new InputFilter.LengthFilter(maxLength));

  On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
  wrote:
    Hi,

   I need to have an EditText with maximum width for 4 characters. I do not
   want set maximum width in pixels as I have my target with couple of
   different screen resolutions.

   Can anyone suggest me how to do this?

   Thanks

  --
  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.comandroid-developers%2Bunsubs 
  cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: EditText - maximum width

2010-01-28 Thread android beginner
Hi Sasikumar,

Thanks for your email. But as mentioned in my first email, I do not want to
set it with pixel size as I have couple of screen with different resolution.

Thanks

On Fri, Jan 29, 2010 at 2:47 PM, Sasikumar S sasikumar.it1...@gmail.comwrote:

 Hi android beginner,

 you can set your edittext box width as 65PX. So that it will looks
 like four character supporting box.
 After you are entering text also it won't decrease or increase.

 On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  I made the EditText to accept only 4 characters, but my question was
  different. sorry for not being clear.
 
  When the EditText comes up, by default its very small(equavalent to one
  character length) and on entering characters it re-sizes itself. I do not
  want it to resize, but fixed size of 4 characters.
 
  Thanks
 
 
 
  On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   It helps reading the documentation, but here's your answer:
 
  addFilter(view, new InputFilter.LengthFilter(maxLength));
 
   On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
I need to have an EditText with maximum width for 4 characters. I do
 not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.
 
Can anyone suggest me how to do this?
 
Thanks
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en


-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: EditText - maximum width

2010-01-28 Thread Sasikumar.S
OK android beginner.

If i got the solution i will inform you.

On Fri, Jan 29, 2010 at 9:39 AM, android beginner 
android.beginne...@gmail.com wrote:

 Hi Sasikumar,

 Thanks for your email. But as mentioned in my first email, I do not want to
 set it with pixel size as I have couple of screen with different resolution.

 Thanks

 On Fri, Jan 29, 2010 at 2:47 PM, Sasikumar S 
 sasikumar.it1...@gmail.comwrote:

 Hi android beginner,

 you can set your edittext box width as 65PX. So that it will looks
 like four character supporting box.
 After you are entering text also it won't decrease or increase.

 On Jan 29, 7:49 am, android beginner android.beginne...@gmail.com
 wrote:
  Hi,
 
  I made the EditText to accept only 4 characters, but my question was
  different. sorry for not being clear.
 
  When the EditText comes up, by default its very small(equavalent to one
  character length) and on entering characters it re-sizes itself. I do
 not
  want it to resize, but fixed size of 4 characters.
 
  Thanks
 
 
 
  On Fri, Jan 29, 2010 at 1:08 PM, Zsolt Vasvari zvasv...@gmail.com
 wrote:
   It helps reading the documentation, but here's your answer:
 
  addFilter(view, new InputFilter.LengthFilter(maxLength));
 
   On Jan 29, 7:00 am, android beginner android.beginne...@gmail.com
   wrote:
 Hi,
 
I need to have an EditText with maximum width for 4 characters. I do
 not
want set maximum width in pixels as I have my target with couple of
different screen resolutions.
 
Can anyone suggest me how to do this?
 
Thanks
 
   --
   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.comandroid-developers%2bunsubscr...@googlegroups.comandroid-developers%2Bunsubs
 cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en





-- 
Thanks  Regards
Sasikumar.S

-- 
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 options, visit this group at
http://groups.google.com/group/android-developers?hl=en