change size of controls in a layout

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


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

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

Thank you,

-DK

--



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;
requestLayout();
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"
          android:layout_height="50px">
</EditText>
  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
 http://sites.google.com/site/rezmobileapps/treking 

--



Other Threads

1. Reminder: IRC office hours starting in 30 mins

Irc office hours will begin in 30 mins at #android-dev irc channel.

Please post your questions at:
http://moderator.appspot.com/#15/e=120951&t=120e11

Thanks,
Megha

--

2. Important: G explains the meaning of Open

Google Explains Their Meaning Of 'Open'
http://www.androidcentral.com/google-explains-their-meaning-open

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

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. MergeAdapter problem

4. How to install EAP TLS certificates for WiF

5. About my posts and membership

6. DroidFanz offering unauthorized paid apps - check yours

7. Droid - won't rotate image captured from camera? (Camera.Parameters)