Need Help with the android:weightSum and layout_weight attributes

by Business Talk » Thu, 26 Nov 2009 20:43:10 GMT


Sponsored Links
 I have a simple horizontal linear_layout  with bunch of image views in
it. the trick is that the views have different widths, relative to the
size of their parent (the linear layout). I set the layout's weightSum
to a 100 and the layout_weight to let's say 10 of one view and 15 of
the other, on so on. And it did not work. I also tired using float
values setting the weightSum to 1.0 and the layout_weight of the image
views to 0.2 and 0.3 and so on. But it didn't work either. I did
search this group for any references to the weightSum but found
nothing. Any ideas how to handle it?

--



Need Help with the android:weightSum and layout_weight attributes

by Romain Guy » Fri, 27 Nov 2009 01:41:51 GMT


 Hi,

What doesn't work exactly? What are you trying to do and what is the result?

On Thu, Nov 26, 2009 at 4:42 AM, Business Talk


>


Sponsored Links


Need Help with the android:weightSum and layout_weight attributes

by steelbytes » Fri, 27 Nov 2009 09:16:25 GMT


 I think you have to set the width of each item to 0px. then the
weighting will override this?  seems to work for me.

It's a shame that the docs are so spartan.




> >



Need Help with the android:weightSum and layout_weight attributes

by Romain Guy » Fri, 27 Nov 2009 09:39:06 GMT


 Using 0px is mostly an optimization. It is not required.




I think you have to set the width of each item to 0px. then the
weighting will override this?  seems to work for me.

It's a shame that the docs are so spartan.



doesn't work exactly? W...



linear_layout  with bunch of ...

to provide private suppo...
text -

--



Need Help with the android:weightSum and layout_weight attributes

by Business Talk » Fri, 27 Nov 2009 20:56:13 GMT


 Thanks to all, it worked. You can only guess how much time you saved
me. Good Luck






>



Other Threads

1. Painting in webkit's webview

hi all,



I am looking into the code of webview.java.....and one thing i want to
know that how this webview class is holding other objects in a
webpage...my requirement is that whenever user clicks on the checkbox
on a page the focusring  should not go off until the the checkbox
loose focus....
other doubt is  the focusring normally drawn by the webcore in other
platform but it is happening in android platform   because if i want
to clear the focusring forcefully how to do that action...

Regards
Yogi

-- 

2. [WTA] - Gagal Unlock EVDO SMART di Motorola Droid

Master2 Android, mohon share ilmunya.

Saya kebetulan baru beli Motorola Droid minggu lalu. Sudah berhasil
inject nomer SMART. Telpon dan SMS lancar. Tapi sampai dengan hari ini
gatot untuk nyalain EVDOnya. Jangankan EVDO, 1X saja gak bisa muncul :
(

Semua cara yang diajarin master di group ini sudah saya lakukan. Mulai
dari HW vsp, CDMA Workshop, inject nv_item sampai dengan ubah password
P.P.P dengan qpst.
Tapi semuanya belum bisa untuk nyalain EVDO dan 1X..

Untuk informasi tambahan, settingan user di nv_item sudah pernah saya
coba m...@smart-telecom.co.id, m...@smart-telecom.net.id, m...@sinarmas-
telecom.co.id, m...@sinarmas-telecom.net.id. Terakhir MDN juga saya
ganti2 dengan MIN. Tapi tetap EVDO yang diharapkan tidak muncul.
Padahal sebelumnya menggunakan HH HTC Hero, EVDO Smart bisa anteng.

Kalau saya cek di Setting - Status, Networknya masih CDMA 1x. Belum
berubah jadi EVDO Rev A juga.

Mohon bantuan para Masta. Stuck rasanya :( Untuk informasi, lokasi
Saya di Surabaya Pusat.

-- 
===============
"

3. Unique Phone ID

4. Twitter client Application in Android

5. Cache size and Heap size

6. how to set the letter-spacing in the Textview

7. Testing in android