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++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -