EF's Blog

Posts Tagged ‘weight

For example :

<TableRow
android:layout_width=”wrap_content”
android:layout_height=”wrap_content”
android:layout_gravity=”center_vertical”
android:background=”@drawable/epolicy_menu_nab_barbackground”
android:weightSum=”1″
>
<TextView
android:id=”@+id/tvNABColumnJenis”
android:text=”@string/strNABColumnJenis”
style=”@style/size10ptWhite3dpBold”
android:layout_weight=”.45″
android:layout_width=”0dp”
/>
<TextView
android:id=”@+id/tvNABColumnPerubahan”
android:text=”@string/strNABColumnPerubahan”
style=”@style/size10ptWhite3dpBold”
android:layout_weight=”.21″
android:layout_width=”0dp”
/>
<TextView
android:id=”@+id/tvNABColumnDalam3Hari”
android:text=”@string/strNABColumnDalam3Hari”
style=”@style/size10ptWhite3dpBold”
android:layout_weight=”.34″
android:layout_width=”0dp”
/>
</TableRow>

these parameters :

android:weightsum=”1″

and 

android:width=”0dp”

is a must.


EF’s Blog

I'm just ordinary people who lived in an extra-ordinary world.

EF's Blog Stats

  • 151,005 hits
May 2020
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Archives