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. Bagaimana memulihkan hh yg brick

bradre semua, cuma mau share aja, tapi ketemu link yg bagus dari
xda ,bagaimana mengatasi hh yg brick (belum nyoba dan moga2 jangan
deh  ,hehe) .

ini link nya

langkah2 nya (kalo ada salah mohon di revisi yah)
1.di pc jalanin dulu command "fastboot boot recovery image"
2.pada saat ini command akan muncul pesan "waiting for device"
3. setelah itu , cabut baterai hh nya
4. connect hh ke pc via usb
5. masukkan lagi baterainya ke hh
6  setelah itu nyalakan hh dengan cara menekan dan menahan tombol
7. setelah beberapa saat , hh akan masuk ke recovery lagi.

mohon maaf kalo ada kata2 yg gak jelas (poor english)


Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group, please visit the following page:

2. Android 2.0 Bluetooth Code Samples

Does anyone have any working code with the added Bluetooth support?
Also, were you able to get Bluetooth working in the AVD? Thanks.


3. Debug Question

4. Selling Applikation not on Android Market

5. Selling Applikation not on Android Market

6. Ndrive volume.

7. Back key after Search doesn't return to list in 2.0 as it did in all earlier versions