Android fill percent of layout -


how make elements in layout occupy 50, 25, 10, etc. percent of horizontal/vertical space available?

you achieve : ( vertical here )

<linearlayout      android:orientation="vertical"     android:layout_width="fill_parent"     android:layout_height="0dip"     android:weightsum="100">     <linearlayout         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_weight="60">     </linearlayout> </linearlayout>` 

see android:weightsum documentation


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -