change size of controls in a layout

by dillipk » Thu, 22 Apr 2010 03:32:36 GMT

Sponsored Links
  How do I change the size of the controls placed in a layout? (by any

 I tried to change the height of an EditBox ->setHeight(10); doesn't
seem to work.

Thank you,



change size of controls in a layout

by social hub » Thu, 22 Apr 2010 03:46:09 GMT

 did u call requestLayout()
or invalidate()

if that doesnt work try below
textView.getLayoutParams().height = x;
should work


Sponsored Links

change size of controls in a layout

by karteek » Thu, 22 Apr 2010 12:22:01 GMT

 If you declared EditText in xml file you can change by
<EditText android:layout_width="50px"
  where you can use any nuber instead of 50


change size of controls in a layout

by ~ TreKing » Thu, 22 Apr 2010 21:58:49 GMT


You should use "dp" to stay consistent across devices with different
resolutions, unless this is definitely what you want.

TreKing - Chicago transit tracking app for Android-powered devices 


Other Threads

1. How to retrieve balance in G1

Hi !
To inquire a balance i have to dial #646#  and it returns dialog
screen with balance information.
Is there any way to access this information.


2. What about the Hebrew / Arabic

i know there are no too many Hebrew speakers in compare to Chinese
but i Arabic is very common around the world
please share a dissent answer with us since we cannot enjoy the
android as we would like to

when is it planned to be released ?
or maybe we can compile it by ourselves ?
any hint would be appreciated it is very frustrating


Android beginer


3. Documentation of MediaPlayer error codes


5. RILD starting as root

6. RecentCallsListActivity: adding a contextual menu extra entry

7. how do i set bank information for receiving 70% rev?